mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 12:05:52 +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:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user