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