查看shells
1、cat /etc/shells
修改shell
2、chsh -s /bin/zsh
3、安装.oh_my_sdh
git clone
git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
4、vim .bash_profile
5、添加 export ZSH_CUSTOM=“/Users/xxx/.oh-my_zsh/custom"
6、安装zsh-autosuggestions
git clone
git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
7、vim .zshrc
8、找到plugins = (git) 修改为 plugins = (git autosuggestions) 保存并退出
9、source .zshrc