Skip to content

Instantly share code, notes, and snippets.

@abhigenie92
Created November 24, 2017 12:02
Show Gist options
  • Save abhigenie92/a907cdf8a474aa6b569ebe89aeee560d to your computer and use it in GitHub Desktop.
Save abhigenie92/a907cdf8a474aa6b569ebe89aeee560d 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 git://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
@VimalMollyn
Copy link

Line number 10 doesn't seem to work (macOS 11). I added the plugins manually. Thanks though!

@fish895623
Copy link

fish895623 commented Jun 7, 2021

Line 10 "zsh-history-substring-search" should change to "history-substring-search"

repository name back to zsh-history-substring-search

@Yashwanthrn
Copy link

Good

@unknowntpo
Copy link

line 5 should be https:// not git://

@check-m4te
Copy link

line 5 should be https:// not git://

Thanks, I was wondering why I could not find it hehe

@bitsnaps
Copy link

bitsnaps commented Dec 6, 2023

Got the issue: zsh: unknown file attribute at Line 10: plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting).

@falramahi
Copy link

falramahi commented May 7, 2024

Got the issue: zsh: unknown file attribute at Line 10: plugins = ( [plugins...] zsh-autosuggestions zsh-history-substring-search zsh-syntax-highlighting).

Look at the comment above. It should be https:// and not git://

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