Skip to content

Instantly share code, notes, and snippets.

@irdanish11
Last active October 31, 2022 07:07
Show Gist options
  • Save irdanish11/382f0dc7e0622e7d4a5b250a07936cf1 to your computer and use it in GitHub Desktop.
Save irdanish11/382f0dc7e0622e7d4a5b250a07936cf1 to your computer and use it in GitHub Desktop.
Oh my ZSH Autocomplete and Suggestions

1. Oh my zsh.

1.1. Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

1.2. Install Oh my ZSH.

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

1.3. Install plugins.

  • autosuggesions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
  • zsh-syntax-highlighting plugin
 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
  • zsh-fast-syntax-highlighting plugin
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
  • zsh-autocomplete plugin
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete

1.4. Enable plugins by adding them to .zshrc.

  • Open .zshrc

    vim ~/.zshrc

  • Find the line which says plugins=(git).

  • Replace that line with plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete)

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