Skip to content

Commit d44159b

Browse files
Foryahsunaku
authored andcommitted
support for installing as Oh-My-Zsh plugin (#87)
1 parent 4594aca commit d44159b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
2842
Usage
2943
------------------------------------------------------------------------------
3044

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
0=${(%):-%N}
2+
source ${0:A:h}/zsh-history-substring-search.zsh

0 commit comments

Comments
 (0)