config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 5fed117e3969aa5c9ffd9b6857370fa002adc1f2
parent f137085750b2a908574f2f9bee25fcc2de44e25c
Author: jacob <jacobdoeslinux@protonmail.com>
Date:   Thu, 21 Nov 2019 18:47:25 -0800

tweaked syntax highlighting

Diffstat:
Mzsh/.zshrc | 44++++++++++++++++++++++++++------------------
1 file changed, 26 insertions(+), 18 deletions(-)

diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -26,24 +26,6 @@ bindkey -v bindkey "^[[1;5C" forward-word #crtl+left bindkey "^[[1;5D" backward-word #crtl+rigth # }}} - - #>syntax hightlighting {{{ -source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -ZSH_HIGHLIGHT_STYLES[suffix-alias]=fg=cyan,underline -ZSH_HIGHLIGHT_STYLES[precommand]=fg=cyan,underline -ZSH_HIGHLIGHT_STYLES[arg0]=fg=cyan -ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor) - -ZSH_HIGHLIGHT_PATTERNS=('rm -rf *' 'fg=white,bold,bg=red') -ZSH_HIGHLIGHT_PATTERNS=('sudo' 'fg=white,bold') - - zstyle ':completion:*:options' list-colors '=^(-- *)=32' - zstyle ':completion:*:*:kill:*' list-colors '=(#b) #([0-9]#)*( *[a-z])*=34=31=33' - zstyle ':completion:*:*:cd:*:*' list-colors - -zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} -# }}} #>history {{{ HISTFILE=~/.histfile @@ -65,3 +47,29 @@ PROMPT=' #' # }}} + #>syntax hightlighting {{{ +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + +ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) # include these +ZSH_HIGHLIGHT_STYLES[precommand]=fg=cyan,underliine # don't know what it does + + +ZSH_HIGHLIGHT_STYLES[alias]=fg=blue,underline # alias +ZSH_HIGHLIGHT_STYLES[arg0]=fg=blue # command +ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=cyan # unknown comand + + +ZSH_HIGHLIGHT_STYLES[redirection]=fg=cyan,bold # <|> +ZSH_HIGHLIGHT_STYLES[commandseparator]=fg=white,bold # &&; + + + # costom +ZSH_HIGHLIGHT_PATTERNS=('rm -rf *' 'fg=white,bold,bg=red') +ZSH_HIGHLIGHT_PATTERNS=('sudo' 'fg=white,bold') + + zstyle ':completion:*:options' list-colors '=^(-- *)=32' + zstyle ':completion:*:*:kill:*' list-colors '=(#b) #([0-9]#)*( *[a-z])*=34=31=33' + zstyle ':completion:*:*:cd:*:*' list-colors + +zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} +# }}}