Highlight long args in orange

This commit is contained in:
Jeremy Gardais 2018-04-03 15:25:43 +02:00
parent 93ac8de3ac
commit 7efbbd271d
1 changed files with 2 additions and 1 deletions

3
zshrc
View File

@ -1240,7 +1240,8 @@ ZSH_HIGHLIGHT_HIGHLIGHTERS=(regexp main brackets pattern)
ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red')
ZSH_HIGHLIGHT_REGEXP+=('\bsudo\b' 'fg=white,bold,bg=red')
### CLI
ZSH_HIGHLIGHT_REGEXP+=('\ \-[^ ]+' 'fg=227') # args in yellow (-l)
ZSH_HIGHLIGHT_REGEXP+=('\ \-[^- ]+' 'fg=227') # short args in yellow (-l)
ZSH_HIGHLIGHT_REGEXP+=('\ \--[^ ]+' 'fg=214') # long args in orange (--all)
### Taskwarrior
ZSH_HIGHLIGHT_REGEXP+=('\ \+[^ ]+' 'fg=226') # tags in yellow (+txt)
ZSH_HIGHLIGHT_REGEXP+=('[^ ]+\:' 'fg=135') # metadata in purple (project:)