bash : tmux show no autocomplete error when no sessions are running.

This commit is contained in:
Dmitry Voronin 2023-10-23 04:27:32 +03:00
parent ee96817c77
commit 1289522e66

View file

@ -51,7 +51,7 @@ tka()
# autocompletes. # autocompletes.
_ta() _ta()
{ {
_autocomplete_first "$(tmux list-sessions | sed -e 's/:.*//')" _autocomplete_first "$(tmux list-sessions 2> /dev/null | sed -e 's/:.*//')"
} }
complete -F _ta ta tk complete -F _ta ta tk