sudo apt-get install git
yum -y install git
sudo apt-get install zsh
yum -y install zsh
sh -c "$(wget -O- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
成功
vim ~/.zshrc
主题列表
source ~/.zshrc
cd ~/.oh-my-zsh/plugins wget http://mimosa-pudica.net/src/incr-0.2.zsh
vim ~/.zshrc
在.zshrc文件末尾添加
source ~/.oh-my-zsh/plugins/incr-0.2.zsh
source ~/.zshrc
如果遇到与vim提示功能冲突
$ vim t
_arguments:451: _vim_files: function definition file not found
解决方法:将~/.zcompdump删除即可
rm -rf ~/.zcompdump
exec zsh
echo $SHELL
cat /etc/shells
chsh -s /bin/zsh