From 1289522e6633ac6616ee94b05ec05570efd1e9c8 Mon Sep 17 00:00:00 2001 From: phone Date: Mon, 23 Oct 2023 04:27:32 +0300 Subject: [PATCH] bash : tmux show no autocomplete error when no sessions are running. --- document/linux/config/bash/module/tmux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/document/linux/config/bash/module/tmux.sh b/document/linux/config/bash/module/tmux.sh index a9aa54d..5903c6f 100644 --- a/document/linux/config/bash/module/tmux.sh +++ b/document/linux/config/bash/module/tmux.sh @@ -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