mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-30 22:54:07 +00:00 
			
		
		
		
	Clean-up bash comletion
"cword" is unset and even is not used in completion for other shells, so it probably shouldn't be here either. If it for some reason should be there add the directive "# shellcheck disable=SC2034" to the line above it.
This commit is contained in:
		
				
					committed by
					
						 Martin Nordholts
						Martin Nordholts
					
				
			
			
				
	
			
			
			
						parent
						
							e828d7840a
						
					
				
				
					commit
					e155f56484
				
			
							
								
								
									
										2
									
								
								assets/completions/bat.bash.in
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								assets/completions/bat.bash.in
									
									
									
									
										vendored
									
									
								
							| @@ -32,7 +32,7 @@ __bat_escape_completions() | ||||
| } | ||||
|  | ||||
| _bat() { | ||||
| 	local cur prev words cword split=false | ||||
| 	local cur prev words split=false | ||||
| 	if declare -F _init_completion >/dev/null 2>&1; then | ||||
| 		_init_completion -s || return 0 | ||||
| 	else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user