mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Make this script usable as an oh-my-zsh plugin.
This commit is contained in:
parent
d35af74603
commit
c3454b48a7
16
README.md
16
README.md
@ -11,12 +11,26 @@ Download the script or clone this repository:
|
||||
|
||||
Update your `~/.zshrc` so that the script is sourced:
|
||||
|
||||
source /path/to/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /path/to/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
||||
|
||||
Re-open your terminal, or just reload it to take changes into account:
|
||||
|
||||
source ~/.zshrc
|
||||
|
||||
## Usage with oh-my-zsh
|
||||
|
||||
Download the script or clone this repository:
|
||||
|
||||
cd ~/.oh-my-zsh/plugins/
|
||||
git clone git://github.com/nicoulaj/zsh-syntax-highlighting.git
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user