chore: format files with shfmt and resolve most shellcheck complaints

This commit is contained in:
2024-02-18 02:03:37 +00:00
parent 6cd89beb5e
commit 631e09f428
28 changed files with 160 additions and 140 deletions

View File

@@ -3,11 +3,12 @@ _tmuxifier() {
local word="${COMP_WORDS[COMP_CWORD]}"
if [ "$COMP_CWORD" -eq 1 ]; then
COMPREPLY=( $(compgen -W "$(tmuxifier commands)" -- "$word") )
COMPREPLY=($(compgen -W "$(tmuxifier commands)" -- "$word"))
else
local command="${COMP_WORDS[1]}"
local completions="$(tmuxifier completions "$command")"
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
local completions
completions="$(tmuxifier completions "$command")"
COMPREPLY=($(compgen -W "$completions" -- "$word"))
fi
}