diff --git a/functions/tmux.fish b/functions/tmux.fish index a061a93..72c7371 100644 --- a/functions/tmux.fish +++ b/functions/tmux.fish @@ -1,8 +1,10 @@ if command -v tmux 2>&1 function ta - if command tmux list-sessions 2>&1 +command tmux list-sessions 2>&1 + switch $status + case '0' tmux a - else + case '*' tmux end end