From 21924f1f0453fc0862399782ded952e7402db32f Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 22 May 2024 20:23:00 +0200 Subject: [PATCH] addet tmux function --- functions/tmux.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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