Added hashed commands highlighting to zsh-syntax-highlighting oh-my-zsh plugin.

This commit is contained in:
Sorin Ionescu 2011-01-06 03:07:43 +08:00 committed by Julien Nicoulaud
parent 06d67990d9
commit a7746077bf

View File

@ -130,6 +130,7 @@ _zsh_highlight-zle-buffer() {
*': builtin') style=$ZSH_HIGHLIGHT_STYLES[builtin];; *': builtin') style=$ZSH_HIGHLIGHT_STYLES[builtin];;
*': function') style=$ZSH_HIGHLIGHT_STYLES[function];; *': function') style=$ZSH_HIGHLIGHT_STYLES[function];;
*': command') style=$ZSH_HIGHLIGHT_STYLES[command];; *': command') style=$ZSH_HIGHLIGHT_STYLES[command];;
*': hashed') style=$ZSH_HIGHLIGHT_STYLES[command];;
*) if _zsh_check-path; then *) if _zsh_check-path; then
style=$ZSH_HIGHLIGHT_STYLES[path] style=$ZSH_HIGHLIGHT_STYLES[path]
elif [[ $arg[0,1] = $histchars[0,1] ]]; then elif [[ $arg[0,1] = $histchars[0,1] ]]; then