From 45b61d85c267842c64409a88fd01206ce173c61e Mon Sep 17 00:00:00 2001 From: Dennis Schoepf Date: Sat, 10 Jan 2026 22:29:06 +0100 Subject: [PATCH] fixes fixes --- modules/fish/default.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/fish/default.nix b/modules/fish/default.nix index 9405975..ad4fa6b 100644 --- a/modules/fish/default.nix +++ b/modules/fish/default.nix @@ -229,8 +229,14 @@ fnm env --use-on-cd --shell fish | source # Auto start tmux - if status --is-interactive; and not set -q TMUX - tmux attach-session -d -t main || tmux new-session -s main + if status is-interactive; and not set -q TMUX + if tmux list-sessions >/dev/null 2>&1 + # Attach to the first available session + tmux attach-session + else + # Create a new session + tmux new-session -t default + end end '';