File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,20 @@ Using the [Homebrew]( https://brew.sh ) package manager:
2525 brew install zsh-history-substring-search
2626 echo 'source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh' >> ~/.zshrc
2727
28+ Using [ Oh-my-zsh] ( https://github.com/robbyrussell/oh-my-zsh ) :
29+
30+ 1 . Clone this repository in oh-my-zsh's plugins directory:
31+
32+ git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
33+
34+ 2 . Activate the plugin in ` ~/.zshrc ` :
35+
36+ plugins=( [plugins...] zsh-history-substring-search)
37+
38+ 3 . Source ` ~/.zshrc ` to take changes into account:
39+
40+ source ~/.zshrc
41+
2842Usage
2943------------------------------------------------------------------------------
3044
Original file line number Diff line number Diff line change 1+ 0=${(% ):-% N}
2+ source ${0: A: h} /zsh-history-substring-search.zsh
You can’t perform that action at this time.
0 commit comments