mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 07:04:04 +00:00 
			
		
		
		
	use _describe instead of _values on subcommand
This commit is contained in:
		
							
								
								
									
										4
									
								
								assets/completions/bat.zsh
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								assets/completions/bat.zsh
									
									
									
									
										vendored
									
									
								
							| @@ -76,7 +76,9 @@ _bat_main() { | |||||||
|  |  | ||||||
| # first positional argument | # first positional argument | ||||||
| if (( ${#words} == 2 )); then | if (( ${#words} == 2 )); then | ||||||
|     _values subcommand cache |     local -a subcommands | ||||||
|  |     subcommands=('cache:Modify the syntax-definition and theme cache') | ||||||
|  |     _describe subcommand subcommands | ||||||
|     _bat_main |     _bat_main | ||||||
| else | else | ||||||
|     case $words[2] in |     case $words[2] in | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user