Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gee1k/05f817e6fe8ce8e4ec64d417423fbc6b to your computer and use it in GitHub Desktop.
Save gee1k/05f817e6fe8ce8e4ec64d417423fbc6b to your computer and use it in GitHub Desktop.
Terminal + oh-my-zsh + Pure theme + zsh plugins setup
yarn global add pure-prompt
# .zshrc
ZSH_THEME=""

# oh-my-zsh overrides the prompt, so Pure must be activated after `source $ZSH/oh-my-zsh.sh`
autoload -U promptinit; promptinit
prompt pure
  • Install zsh-syntax-highlighting oh-my-zsh plugin
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  • Install zsh-autosuggestions oh-my-zsh plugin
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
  • Finally update plugins list for oh-my-zsh in ~/.zshrc
# .zshrc
plugins=(
  git
  brew
  common-aliases
  node
  npm
  rand-quote
  sudo
  yarn
  colored-man-pages
  colorize
  cp
  zsh-syntax-highlighting
  zsh-autosuggestions
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment