diff --git a/zshrc b/zshrc index 8f7ab21..8d849f9 100644 --- a/zshrc +++ b/zshrc @@ -2508,8 +2508,8 @@ fi ### the double quotation marks ZSH_HIGHLIGHT_HIGHLIGHTERS=(regexp main brackets pattern) ### Dangerous commands -ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red') -ZSH_HIGHLIGHT_PATTERNS+=('sudo*' 'fg=white,bold,bg=red') +ZSH_HIGHLIGHT_PATTERNS+=('rm -rf ' 'fg=white,bold,bg=black') +ZSH_HIGHLIGHT_PATTERNS+=('sudo ' 'fg=white,bold,bg=red') ### CLI ZSH_HIGHLIGHT_REGEXP+=('\ \-[^- ]+' 'fg=202') # short args in orange (-l) ZSH_HIGHLIGHT_REGEXP+=('\ \--[^ ]+' 'fg=214') # long args in light orange (--all)