安装autojump
autojump可以直接跳转到你喜爱的目录。下面是安装方法:
1. brew install autojump
2. 将[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
加入到zshrc
中去。
安装zsh-autosuggestions
autosuggestions可以自动补全上一条命令。
1. git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
2. 修改zshrc
:plugins=(zsh-autosuggestions)
安装zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- 修改
zshrc
:plugins=( [plugins...] zsh-syntax-highlighting)