Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save yuhangch/71fa322f2af0fb93d3401a6c2b1a8021 to your computer and use it in GitHub Desktop.
Save yuhangch/71fa322f2af0fb93d3401a6c2b1a8021 to your computer and use it in GitHub Desktop.

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

In GFW , mannual get the code of install.sh and save to somewhere

chmod +x ./install.sh;./install.sh

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

  • Download zsh-syntax-highlighting by

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

  • nano ~/.zshrc find plugins=(git)

  • Append zsh-autosuggestions & zsh-syntax-highlighting to plugins() like this

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

  • . ~/.zshrc

Ref

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment