Issue 7: Add instructions for using with oh-my-zsh
This commit is contained in:
parent
e1c078c628
commit
7c1690f5b0
23
README.md
23
README.md
@ -3,8 +3,12 @@ zsh-syntax-highlighting
|
||||
|
||||
An attempt at providing [Fish shell](http://www.fishshell.org) like syntax highlighting for [Zsh](http://www.zsh.org).
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
### From your ~/.zshrc
|
||||
|
||||
Download the script or clone this repository:
|
||||
|
||||
git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git
|
||||
@ -18,11 +22,30 @@ Re-open your terminal, or just reload it to take changes into account:
|
||||
source ~/.zshrc
|
||||
|
||||
|
||||
### With [oh-my-zsh](http://github.com/robbyrussell/oh-my-zsh)
|
||||
|
||||
Download the script or clone this repository as a oh-my-zsh plugin:
|
||||
|
||||
cd ~/.oh-my-zsh/plugins/
|
||||
git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git
|
||||
cd zsh-syntax-highlighting
|
||||
ln -s zsh-syntax-highlighting.zsh zsh-syntax-highlighting.plugin.zsh
|
||||
|
||||
Update your `~/.zshrc` so that the script is sourced:
|
||||
|
||||
plugins=(zsh-syntax-highlighting)
|
||||
|
||||
Re-open your terminal, or just reload it to take changes into account:
|
||||
|
||||
source ~/.zshrc
|
||||
|
||||
|
||||
## References
|
||||
|
||||
* [zsh-users mailing list thread](http://www.zsh.org/mla/users/2010/msg00692.html)
|
||||
* [Gist 586698](http://gist.github.com/586698) and forks
|
||||
|
||||
|
||||
## Authors / Greetings
|
||||
|
||||
* [Roy Zuo](http://github.com/roylez)
|
||||
|
Loading…
Reference in New Issue
Block a user