Skip to content

Instantly share code, notes, and snippets.

@emmanuelnk
Forked from abhigenie92/How to make zsh like fish
Last active June 24, 2023 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emmanuelnk/d7ceba1f753b3e630f66abbffac5a6ae to your computer and use it in GitHub Desktop.
Save emmanuelnk/d7ceba1f753b3e630f66abbffac5a6ae to your computer and use it in GitHub Desktop.
1. Install oh-my-zsh
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
2. Clone necessary plugins.
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
3. Add plugins to ~/.zshrc as
plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting)
Note: make sure zsh-syntax-highlighting is the last one in the above list.
4. Fix background theme issues (Not necessary depends on your theme)
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=white'
5. Restart zsh
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment