sudo apt install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 或者下载源码 git clone https://github.com/ohmyzsh/ohmyzsh.git cd oh-my-zsh/tools sh install.sh
chsh -s /bin/zsh $USER # 重启后生效
vim ~/.zshrc
修改ZSH_THEME="ys"
更新配置source ~/.zshrc
incr.zsh
自动补全插件
wget http://mimosa-pudica.net/src/incr-0.2.zsh
将此插件放到oh-my-zsh目录的插件库下
修改 ~/.zshrc
,最后一行增加
source ~/.oh-my-zsh/plugins/incr/incr*.zsh