安裝概覽:
- Install Homebrew
- Install zsh
- Switch default shell to zsh
- Install oh-my-zsh
- Edit setting
安裝Homebrew
Install Homebrew
1
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
安裝zsh
Confirm the installation
切換預設shell至zsh
1
| sudo sh -c "echo $(which zsh) >> /etc/shells"
|
Restart termianl
if success you’ll see:
安裝oh-my-zsh
1
| git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
|
Copy oh-my-zsh templete to zshrc
1
| cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
|
DONE!