bash : tmux show no autocomplete error when no sessions are running.
This commit is contained in:
parent
ee96817c77
commit
1289522e66
|
@ -51,7 +51,7 @@ tka()
|
|||
# autocompletes.
|
||||
_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
|
||||
|
|
Reference in a new issue