Daniel Shahaf a0b5bc6c71 | преди 9 години | |
---|---|---|
highlighters | преди 9 години | |
tests | преди 9 години | |
.gitignore | преди 13 години | |
COPYING.md | преди 13 години | |
README.md | преди 9 години | |
zsh-syntax-highlighting.plugin.zsh | преди 13 години | |
zsh-syntax-highlighting.zsh | преди 9 години |
Fish shell like syntax highlighting for Zsh.
Requirements: zsh 4.3.17+.
Clone this repository:
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
(or download a snapshot)
Source the script at the end of ~/.zshrc
:
source /path/to/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Source ~/.zshrc
to take changes into account:
source ~/.zshrc
Download the script or clone this repository in oh-my-zsh plugins directory:
cd ~/.oh-my-zsh/custom/plugins
git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
Activate the plugin in ~/.zshrc
(in last position):
plugins=( [plugins...] zsh-syntax-highlighting)
Source ~/.zshrc
to take changes into account:
source ~/.zshrc
zsh-syntax-highlighting.zsh
be sourced at the end of the .zshrc
file?zsh-syntax-highlighting.zsh
wraps ZLE widgets. It must be sourced after all
custom widgets have been created (i.e., after all zle -N
calls).
Syntax highlighting is done by pluggable highlighter scripts, see the highlighters directory for documentation and configuration settings.