From 3dc0ad8268360a415b75fff93f7b273b24e779a9 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 30 Mar 2018 11:14:04 +0200 Subject: [PATCH] Highlight args in shell commands and taskw's subcommands --- zshrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index c59d845..0d07ddd 100644 --- a/zshrc +++ b/zshrc @@ -1232,8 +1232,10 @@ ZSH_HIGHLIGHT_HIGHLIGHTERS=(regexp main brackets pattern) ### Dangerous commands 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) ### Taskwarrior ZSH_HIGHLIGHT_REGEXP+=('\ \+[^ ]+' 'fg=226') # tags in yellow (+txt) -ZSH_HIGHLIGHT_REGEXP+=('[^ ]+\:' 'fg=135') # metadata in purple +ZSH_HIGHLIGHT_REGEXP+=('[^ ]+\:' 'fg=135') # metadata in purple (project:) +ZSH_HIGHLIGHT_REGEXP+=('\ \_[^ ]+' 'fg=32') # subcommands in blue (_command) # }}} -