mirror of
https://github.com/zdharma-continuum/history-search-multi-word
synced 2024-11-21 19:03:11 +00:00
plugin.zsh: Don't override the settings if they're are already altered
Issue #22
This commit is contained in:
parent
9460dff3d2
commit
d343cd0d7f
1 changed files with 5 additions and 3 deletions
|
@ -18,9 +18,11 @@ zle -N history-search-multi-word
|
|||
zle -N history-search-multi-word-backwards history-search-multi-word
|
||||
zle -N history-search-multi-word-pbackwards history-search-multi-word
|
||||
zle -N history-search-multi-word-pforwards history-search-multi-word
|
||||
[[ "${+termcap[Co]}" = 1 && "${termcap[Co]}" = "256" ]] && {
|
||||
zstyle ":history-search-multi-word" highlight-color "bg=17"
|
||||
[[ ${+termcap[Co]} = 1 && ${termcap[Co]} = 256 ]] && {
|
||||
zstyle -s ":history-search-multi-word" highlight-color tmp || \
|
||||
zstyle ":history-search-multi-word" highlight-color "bg=17"
|
||||
typeset -gA HSMW_HIGHLIGHT_STYLES
|
||||
HSMW_HIGHLIGHT_STYLES[variable]="fg=112"
|
||||
[[ ${HSMW_HIGHLIGHT_STYLES[variable]} = none ]] && \
|
||||
HSMW_HIGHLIGHT_STYLES[variable]="fg=112"
|
||||
}
|
||||
bindkey "^R" history-search-multi-word
|
||||
|
|
Loading…
Reference in a new issue