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:
Adrián Bíro 2023-04-08 13:00:09 +02:00 committed by Martin Nordholts
parent e828d7840a
commit e155f56484
1 changed files with 1 additions and 1 deletions

View File

@ -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