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 authored and Martin Nordholts committed 2023-05-12 05:59:36 +02:00
1 parent e828d7840a
commit e155f56484
1 file changed
+1 -1
+1 -1
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