From 7efbbd271d2668a79b10fe5940a0d0d47ac1c7f8 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 3 Apr 2018 15:25:43 +0200 Subject: [PATCH] Highlight long args in orange --- zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 3176379..7153371 100644 --- a/zshrc +++ b/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:)