mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-12 21:39:48 +01:00
fix(tmux): add completion for alias functions (#12468)
This commit is contained in:
parent
e0c6cb1470
commit
56afe7b368
1 changed files with 13 additions and 0 deletions
|
@ -57,6 +57,19 @@ function _build_tmux_alias {
|
|||
tmux $2 $3 \"\$@\"
|
||||
fi
|
||||
}"
|
||||
|
||||
local f s
|
||||
f="_omz_tmux_alias_${1}"
|
||||
s=(${(z)2})
|
||||
|
||||
eval "function ${f}() {
|
||||
shift words;
|
||||
words=(tmux ${@:2} \$words);
|
||||
((CURRENT+=${#s[@]}+1))
|
||||
_tmux
|
||||
}"
|
||||
|
||||
compdef "$f" "$1"
|
||||
}
|
||||
|
||||
alias tksv='tmux kill-server'
|
||||
|
|
Loading…
Reference in a new issue