我只是個搬運工,不想下次安裝iterm時再去找網上找連接。權當給本身備份一下git
三、四、5沒有現成的文檔,就本身寫一下吧github
一、克隆倉庫到本地 ~/.oh-my-zsh/custom/plugins
路徑下vim
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
二、打開.zshrc
文件插件
vim ~/.zshrc
三、編輯.zshrc
文件code
plugins=( git ) // 修改成 plugins=( zsh-autosuggestions git )
四、加載.zshrc
配置圖片
source ~/.zshrc
從新打開iterm窗口,能夠看到效果文檔
一、安裝zsh-syntax-highlighting
插件get
brew install zsh-syntax-highlighting
二、打開.zshrc
文件it
vim ~/.zshrc
三、編輯.zshrc
文件io
plugins=( zsh-autosuggestions git ) // 修改成 plugins=( zsh-autosuggestions zsh-syntax-highlighting git ) //添加 source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
四、加載.zshrc
配置
source ~/.zshrc
從新打開iterm窗口,能夠看到效果
一、安裝autojump
插件
brew install autojump
二、打開.zshrc
文件
vim ~/.zshrc
三、用vim編輯.zshrc
文件
plugins=( zsh-autosuggestions zsh-syntax-highlighting git ) // 修改成 plugins=( zsh-autosuggestions zsh-syntax-highlighting autojump git ) //添加 alias j="autojump" [[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh
四、加載.zshrc配置
source ~/.zshrc
從新打開iterm窗口,能夠看到效果
autojump配置在我本地不生效,報錯信息
command not found: autojump
,重啓電腦,重啓iterm都沒有用。也在網上找了解決方法,但都沒有用。因時間問題暫時擱置後續解決了再來補充 有知道的小夥伴也麻煩告知一下