Skip to content

Instantly share code, notes, and snippets.

@ywwwtseng
Last active January 23, 2019 02:27
Show Gist options
  • Save ywwwtseng/0f8c80c6b6c028dc1ceae683b7e2a679 to your computer and use it in GitHub Desktop.
Save ywwwtseng/0f8c80c6b6c028dc1ceae683b7e2a679 to your computer and use it in GitHub Desktop.
color terminal

🚀 為 MAC 的 Terminal 上色

超簡單!十分鐘打造漂亮又好用的 zsh command line 環境

修復 VScode terminal 字體,設定檔加這行就 OK 囉

"terminal.integrated.fontFamily": "SauceCodePro Nerd Font"

好用外掛

Auto Suggestions (for Oh My ZSH)

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'

程式碼高亮(Syntax Highlighting)

安裝

$ brew install zsh-syntax-highlighting
$ open ~/.zshrc

在設定檔的最下面加上這段

# For zsh syntax-highlighting
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment