style(shell): improve shell script formatting and quoting

Apply shfmt formatting and fix some schellcheck complaints.
This commit is contained in:
2025-11-25 02:52:36 +00:00
parent 9941b28063
commit adb008b301
17 changed files with 66 additions and 65 deletions

View File

@@ -3,11 +3,11 @@ _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") )
COMPREPLY=($(compgen -W "$completions" -- "$word"))
fi
}