Mac OS 軟件(持續更新)

 

 

1、Homebrew

https://zhuanlan.zhihu.com/p/111014448

https://gitee.com/cunkai/HomebrewCN

https://www.macyy.cn/archives/2019

常見錯誤:

curl: (28) Operation too slow. Less than 100 bytes/sec transferred the last 5 seconds
Warning: formula.jws.json: update failed, falling back to cached version.
Error: Cannot download non-corrupt https://formulae.brew.sh/api/formula.jws.json!

解決辦法:

執行
export HOMEBREW_NO_INSTALL_FROM_API=1

常用程序安裝:

tree,以樹形結構羅列當前文件夾下的所有目錄及數據文件。

brew install tree

google-chrome,谷歌瀏覽器。

brew install google-chrome --cask

sublime-text,文本編輯器。

brew install subime-text --cask

iterms2,用來替代系統自帶的終端使用,拓展性更強,更可以安裝插件。

https://iterm2.com/features.html
brew install iterm2 --cask

zsh,是衆多shell實現的一種,全稱是Z-shell,其包含了 bash,ksh,tcsh 等其他shell中許多優秀功能,也擁有諸多自身特色。從 macOS Catalina 版開始,其默認shell從bash改爲zsh,根據當前的系統版本判斷是否需要安裝即可。校驗代碼如下:

echo $SHELL

zsh-completions,命令補全插件,輸入命令按Tab鍵後會提示可以使用的命令和說明。

brew install zsh-completions
## 插件默認安裝在/usr/local/Cellar/路徑下(這個是我安裝的位置)
/usr/local/Cellar/zsh-completions/0.34.0/share/zsh-completions
安裝完成後,需要到 ~/.zshrc文件中添加插件位置並重啓終端才能生效。
cd ~
ls -la
vim .zshrc

在最後一行添加:
# zsh completions for brew
fpath=(/usr/local/Cellar/zsh-completions/0.34.0/share/zsh-completions $fpath)
compinit

重啓終端
輸入 brew + Tab按鍵,即可看出效果。

oh-my-zsh,Oh My Zsh 是一個開源的、社區驅動的框架,用於管理你的 zsh 配置。

## 官網
https://ohmyz.sh/
## github安裝
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
## gitee國內進行安裝,適合沒有fq的小夥伴
sh -c "$(curl -fsSL https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"

neofetch,系統基礎信息顯示(美化)。

brew install neofetch

 

 

 

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章