2010-12-26 01:47:12 +08:00
|
|
|
zsh-syntax-highlighting
|
|
|
|
=======================
|
|
|
|
|
|
|
|
An attempt at providing [Fish shell](http://www.fishshell.org) like syntax highlighting for [Zsh](http://www.zsh.org).
|
|
|
|
|
2010-12-30 23:35:55 +08:00
|
|
|
|
2010-12-26 01:47:12 +08:00
|
|
|
## Usage
|
|
|
|
|
2010-12-30 23:35:55 +08:00
|
|
|
|
|
|
|
### From your ~/.zshrc
|
|
|
|
|
2010-12-26 05:10:50 +08:00
|
|
|
Download the script or clone this repository:
|
|
|
|
|
|
|
|
git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git
|
|
|
|
|
|
|
|
Update your `~/.zshrc` so that the script is sourced:
|
|
|
|
|
|
|
|
source /path/to/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
|
|
|
|
Re-open your terminal, or just reload it to take changes into account:
|
|
|
|
|
|
|
|
source ~/.zshrc
|
|
|
|
|
2010-12-26 01:47:12 +08:00
|
|
|
|
2010-12-30 23:35:55 +08:00
|
|
|
### 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
|
|
|
|
|
|
|
|
|
2010-12-26 01:47:12 +08:00
|
|
|
## References
|
|
|
|
|
|
|
|
* [zsh-users mailing list thread](http://www.zsh.org/mla/users/2010/msg00692.html)
|
|
|
|
* [Gist 586698](http://gist.github.com/586698) and forks
|
|
|
|
|
2010-12-30 23:35:55 +08:00
|
|
|
|
2010-12-26 01:47:12 +08:00
|
|
|
## Authors / Greetings
|
|
|
|
|
|
|
|
* [Roy Zuo](http://github.com/roylez)
|
|
|
|
* [Julien Nicoulaud](http://github.com/nicoulaj)
|
|
|
|
* [Dave Ingram](http://github.com/dingram)
|
|
|
|
* [Mounier Florian](http://github.com/paradoxxxzero)
|
2010-12-26 02:12:58 +08:00
|
|
|
* [Jonathan Dahan](http://github.com/jedahan)
|
2010-12-26 01:47:12 +08:00
|
|
|
* James Ahlborn
|
2010-12-26 03:51:55 +08:00
|
|
|
* [Andreas Jaggi](http://github.com/x-way)
|
2010-12-26 05:03:27 +08:00
|
|
|
* [Wayne Davison](http://github.com/WayneD)
|
2010-12-30 23:20:43 +08:00
|
|
|
* [Suraj N. Kurapati](http://github.com/sunaku)
|
2010-12-31 09:07:24 +08:00
|
|
|
* [Takeshi Banse](http://github.com/hchbaw)
|
|
|
|
|