fix tmux-completion when trying to use withiout running server
parent
2c7a0f4cb3
commit
71bbd9d41a
|
|
@ -102,7 +102,7 @@ _tmux() {
|
||||||
|
|
||||||
if [[ $COMP_CWORD -le $cmd_index ]]; then
|
if [[ $COMP_CWORD -le $cmd_index ]]; then
|
||||||
# The user has not specified a command yet
|
# The user has not specified a command yet
|
||||||
COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -W "$(tmux list-commands | cut -d' ' -f1)" -- "${cur}") )
|
COMPREPLY=( ${COMPREPLY[@]:-} $(compgen -W "$(tmux start-server \; list-commands | cut -d' ' -f1)" -- "${cur}") )
|
||||||
else
|
else
|
||||||
case ${cmd} in
|
case ${cmd} in
|
||||||
attach-session|attach)
|
attach-session|attach)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue