support for installing as Oh-My-Zsh plugin (#87)
This commit is contained in:
parent
4594acaa4f
commit
d44159b5e8
2 changed files with 16 additions and 0 deletions
14
README.md
14
README.md
|
|
@ -25,6 +25,20 @@ Using the [Homebrew]( https://brew.sh ) package manager:
|
||||||
brew install zsh-history-substring-search
|
brew install zsh-history-substring-search
|
||||||
echo 'source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh' >> ~/.zshrc
|
echo 'source /usr/local/share/zsh-history-substring-search/zsh-history-substring-search.zsh' >> ~/.zshrc
|
||||||
|
|
||||||
|
Using [Oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh):
|
||||||
|
|
||||||
|
1. Clone this repository in oh-my-zsh's plugins directory:
|
||||||
|
|
||||||
|
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
|
||||||
|
|
||||||
|
2. Activate the plugin in `~/.zshrc`:
|
||||||
|
|
||||||
|
plugins=( [plugins...] zsh-history-substring-search)
|
||||||
|
|
||||||
|
3. Source `~/.zshrc` to take changes into account:
|
||||||
|
|
||||||
|
source ~/.zshrc
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
||||||
2
zsh-history-substring-search.plugin.zsh
Normal file
2
zsh-history-substring-search.plugin.zsh
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
0=${(%):-%N}
|
||||||
|
source ${0:A:h}/zsh-history-substring-search.zsh
|
||||||
Loading…
Add table
Add a link
Reference in a new issue