Mac 安装 zsh + Autosuggestion + zs

2021-09-11  本文已影响0人  熊航

安装“oh my zsh”

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

安装历史命令提示插件

git clone [https://github.com/zsh-users/zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions

安装语法高亮插件

git clone git://github.com/zsh-users/zsh-syntax-highlighting $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

编辑~/.zshrc文件

vim ~/.zshrc
plugins=(git z compleat zsh-autosuggestions zsh-syntax-highlighting)

保存并退出,重启 .zshrc

source ~/.zshrc
上一篇 下一篇

猜你喜欢

热点阅读