From 8fd8f0f103b7002257f1834ec5662bf6faa17fbb Mon Sep 17 00:00:00 2001 From: PieckA Date: Sat, 25 May 2024 12:56:29 +0200 Subject: [PATCH] some changes --- functions/tmux.fish | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/functions/tmux.fish b/functions/tmux.fish index 04dca6c..f5c19dc 100644 --- a/functions/tmux.fish +++ b/functions/tmux.fish @@ -1,7 +1,10 @@ -function ta -if command -v tmux list-sessions /dev/null 2>&1 - tmux a - else - tmux - end -end +function ta + if tmux list-sessions + echo "Tmux session found. Entering it now! --" + sleep 0.5 + tmux a + else + echo "No Tmux session found. Creating one now! --" + tmux + end +end