Update color for short option
This commit is contained in:
		
							parent
							
								
									03bf418598
								
							
						
					
					
						commit
						93970a9ef0
					
				
							
								
								
									
										8
									
								
								zshrc
								
								
								
								
							
							
						
						
									
										8
									
								
								zshrc
								
								
								
								
							|  | @ -2509,12 +2509,12 @@ fi | ||||||
| ZSH_HIGHLIGHT_HIGHLIGHTERS=(regexp main brackets pattern) | ZSH_HIGHLIGHT_HIGHLIGHTERS=(regexp main brackets pattern) | ||||||
| ### Dangerous commands | ### Dangerous commands | ||||||
| ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red') | ZSH_HIGHLIGHT_PATTERNS+=('rm -rf *' 'fg=white,bold,bg=red') | ||||||
| ZSH_HIGHLIGHT_REGEXP+=('\bsudo\b' 'fg=white,bold,bg=red') | ZSH_HIGHLIGHT_PATTERNS+=('sudo*' 'fg=white,bold,bg=red') | ||||||
| ### CLI | ### CLI | ||||||
| ZSH_HIGHLIGHT_REGEXP+=('\ \-[^- ]+' 'fg=227') # short args in yellow (-l) | ZSH_HIGHLIGHT_REGEXP+=('\ \-[^- ]+' 'fg=202') # short args in orange (-l) | ||||||
| ZSH_HIGHLIGHT_REGEXP+=('\ \--[^ ]+' 'fg=214') # long args in orange (--all) | ZSH_HIGHLIGHT_REGEXP+=('\ \--[^ ]+' 'fg=214') # long args in light orange (--all) | ||||||
| ### Taskwarrior | ### Taskwarrior | ||||||
| ZSH_HIGHLIGHT_REGEXP+=('\ \+[^ ]+' 'fg=226') # tags in yellow (+txt) | ZSH_HIGHLIGHT_REGEXP+=('\ \+[^ ]+' 'fg=202') # tags in orange (+txt) | ||||||
| ZSH_HIGHLIGHT_REGEXP+=('[^ ]+\:' 'fg=135')   # metadata in purple (project:) | ZSH_HIGHLIGHT_REGEXP+=('[^ ]+\:' 'fg=135')   # metadata in purple (project:) | ||||||
| ZSH_HIGHLIGHT_REGEXP+=('\ \_[^ ]+' 'fg=32')  # subcommands in blue (_command) | ZSH_HIGHLIGHT_REGEXP+=('\ \_[^ ]+' 'fg=32')  # subcommands in blue (_command) | ||||||
| # }}} | # }}} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue