安裝Homebrew
1
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
更新Homebrew
安裝wget
安裝zsh
更新zsh
修改預設shell為zsh
1
| $ chsh -s /usr/local/bin/zsh
|
安裝oh-my-zsh
1
| $ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
安裝zsh-completions
1
| brew install zsh-completions
|
新增設定 (我習慣用nano開…很多範例都用vim 也是可以XD)
nano .zshrc
1 2
| # zsh-completions fpath=(/usr/local/share/zsh-completions $fpath)
|
rebuild zsh 的 .zcompdump
1
| $ rm -f ~/.zcompdump; compinit
|
切換zsh theme
安裝zsh-syntax-highlighting程式碼高亮
1
| brew install zsh-syntax-highlighting
|
安裝iTerm2
1
| brew cask install iterm2
|
标签:1brew,MacOS,安裝,機環境,oh,install,Homebrew,zsh
来源: https://www.cnblogs.com/lijianming180/p/12099546.html