mac 安装 zsh

1.下载.oh-my-zsh配置

1
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh

2.创建新配置

NOTE:如果有~/.zshrc,那就先备份下。

1
2
cp ~/.zshrc ~/.zshrc.orig
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

3.把zsh设置为默认的shell

1
chsh -s /bin/zsh

4.重启zsh(打开一个新的terminal窗口)


来源:https://leunggeorge.github.io/

0%