tmux : include ls dirs in autocomplete.

This commit is contained in:
Dmitry Voronin 2023-11-11 18:39:07 +03:00
parent 484646dbe8
commit db90e0f51a

View file

@ -72,8 +72,8 @@ _tmux_sessions()
_tmux_names()
{
_autocomplete_first "${PWD##*/}"
_autocomplete_first "${PWD##*/}" $(ls --classify | grep /$ | sed -e 's/\/$//')
}
complete -F _tmux_sessions ta tk
complete -F _tmux_names tr tn
complete -o nosort -F _tmux_names tr tn