tmux : add autocomplete for tr and tn.

This commit is contained in:
Dmitry Voronin 2023-11-08 20:05:19 +03:00
parent c306a3d7a4
commit aca05068dc

View file

@ -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