超簡單!十分鐘打造漂亮又好用的 zsh command line 環境
"terminal.integrated.fontFamily": "SauceCodePro Nerd Font"
Auto Suggestions 會根據你過去所輸入的指令來提示要輸入的內容。
安裝
$ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
$ open ~/.zshrc
// 將 'plugins' 改成 plugins=(zsh-autosuggestions),若有多個 plugin 則以空白分開
有時候你的背景色和提是的文字會太過接近,以致於你看不到 autosuggestions 的文字,這時候需要去設定顯示的文字
$ open $ZSH_CUSTOM/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
// 將 'ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE' 改成 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=240'
安裝
$ brew install zsh-syntax-highlighting
$ open ~/.zshrc
在設定檔的最下面加上這段
# For zsh syntax-highlighting
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh