Skip to content

Instantly share code, notes, and snippets.

@ybhwang
Last active October 11, 2021 16:32
Show Gist options
  • Select an option

  • Save ybhwang/630d9105e86265e7967f9d886f5c67f9 to your computer and use it in GitHub Desktop.

Select an option

Save ybhwang/630d9105e86265e7967f9d886f5c67f9 to your computer and use it in GitHub Desktop.
ZSH with OhMyZsh
  • A Unix-like operating system: macOS, Linux, BSD. On Windows: WSL2 is preferred, but cygwin or msys also mostly work.
  • Zsh
  • curl or wget
  • git

Use one of the two commands.

curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

wget

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

zsh-syntax-highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

zsh-completions

git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions

zsh-history-substring-search

git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search

Edit ~/.zshrc

vi ~/.zshrc
plugins=(zsh-syntax-highlighting zsh-autosuggestions zsh-completions history-substring-search)
autoload -U compinit && compinit

Source ~/.zshrc

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