Highlight args in shell commands and taskw's subcommands
This commit is contained in:
		
							parent
							
								
									817ec23563
								
							
						
					
					
						commit
						3dc0ad8268
					
				
							
								
								
									
										6
									
								
								zshrc
								
								
								
								
							
							
						
						
									
										6
									
								
								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) | ||||
| # }}} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue