mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 01:46:40 +00:00
20 lines
341 B
Bash
20 lines
341 B
Bash
if [[ ! -o interactive ]]; then
|
|
return
|
|
fi
|
|
|
|
compctl -K _tmuxifier tmuxifier
|
|
|
|
_tmuxifier() {
|
|
local word words completions
|
|
read -cA words
|
|
word="${words[2]}"
|
|
|
|
if [ "${#words}" -eq 2 ]; then
|
|
completions="$(tmuxifier commands)"
|
|
else
|
|
completions="$(tmuxifier completions "${word}")"
|
|
fi
|
|
|
|
reply=("${(ps:\n:)completions}")
|
|
}
|