Highlight long args in orange
This commit is contained in:
parent
93ac8de3ac
commit
7efbbd271d
3
zshrc
3
zshrc
|
@ -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:)
|
||||
|
|
Loading…
Reference in New Issue