安装oh-my-zsh,终端命令也可以那么爽
作者:互联网
1.安装git
sudo apt-get install git
yum -y install git
2.安装zsh
sudo apt-get install zsh
yum -y install zsh
3.安装ohmyzsh
sh -c "$(wget -O- https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh)"
成功
4.修改主题
vim ~/.zshrc
5.更新配置
source ~/.zshrc
6.自动补齐插件
下载插件
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
查看当前shell
echo $SHELL
查看shell列表
cat /etc/shells
切换shell为zsh
chsh -s /bin/zsh
标签:oh,my,zshrc,vim,install,zsh 来源: https://www.cnblogs.com/dss-99/p/15437162.html