Skip to content

Instantly share code, notes, and snippets.

@zeroc0d3
Created March 24, 2025 23:20
Show Gist options
  • Save zeroc0d3/6ede3fb91338d4acf8203782d5fa57a0 to your computer and use it in GitHub Desktop.
Save zeroc0d3/6ede3fb91338d4acf8203782d5fa57a0 to your computer and use it in GitHub Desktop.
ZSH History & Autocomplete Plugins

ZSH History & Autocomplete Plugins

Clone this repository:

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

Edit your ~/.zshrc

  • Enable Plugins
plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
  fast-syntax-highlighting
  zsh-autocomplete
 )
  • Set History
# History file for zsh
HISTFILE=~/.zsh_history

# How many commands to store in history
HISTSIZE=10000
SAVEHIST=10000

# Share history in every terminal session
setopt SHARE_HISTORY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment