Files
tmuxifier/completion/tmuxifier.bash
Jim Myhrberg adb008b301 style(shell): improve shell script formatting and quoting
Apply shfmt formatting and fix some schellcheck complaints.
2025-12-01 23:04:40 +00:00

15 lines
373 B
Bash

_tmuxifier() {
COMPREPLY=()
local word="${COMP_WORDS[COMP_CWORD]}"
if [ "$COMP_CWORD" -eq 1 ]; then
COMPREPLY=($(compgen -W "$(tmuxifier commands)" -- "$word"))
else
local command="${COMP_WORDS[1]}"
local completions="$(tmuxifier completions "$command")"
COMPREPLY=($(compgen -W "$completions" -- "$word"))
fi
}
complete -F _tmuxifier tmuxifier