MAC下安装oh-my-zsh和zsh-autosuggesti
2017-07-03 本文已影响4746人
Pierre_
1:安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
2、安装zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
3、编辑~/.zshrc文件
-------- 打开命令行工具进入~/.zshrc文件
vim ~/.zshrc
-------按i 进入--INSERT--编辑模式,使用上下左右键找找到plugins=(git)这一行添加
plugins=(git zsh-autosuggestions)
保存退出
ESC 回到正常模式
:wq保存并退出vim
找到plugins=(git)这一行,然后再添加autosuggestions,最后为:
plugins=(git zsh-autosuggestions)
步骤1:
![](https://img.haomeiwen.com/i151090/a5b398e65f8e271e.png)
步骤二:
![](https://img.haomeiwen.com/i151090/1d7d0661648433ba.png)
4、重新打开命令行,当然你也可以source ./zshrc更新下你的zsh,这样你就可以使用oh-my-zsh的同时享受到autosuggestions带来的便利了.