tmux : add autocomplete for tr and tn.
This commit is contained in:
parent
c306a3d7a4
commit
aca05068dc
|
@ -65,9 +65,15 @@ tka()
|
|||
}
|
||||
|
||||
# autocompletes.
|
||||
_ta()
|
||||
_tmux_sessions()
|
||||
{
|
||||
_autocomplete_first "$(tmux list-sessions 2> /dev/null | sed -e 's/:.*//')"
|
||||
}
|
||||
|
||||
complete -F _ta ta tk
|
||||
_tmux_names()
|
||||
{
|
||||
_autocomplete_first "${PWD##*/}"
|
||||
}
|
||||
|
||||
complete -F _tmux_sessions ta tk
|
||||
complete -F _tmux_names tr tn
|
||||
|
|
Reference in a new issue