From e315aa6221d6a3e4f6bb13b29486603dfefbfea7 Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Sat, 7 Mar 2026 11:20:23 +0000 Subject: [PATCH] Use exec zellij attach in SSH Nushell startup --- modules/tahani.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tahani.nix b/modules/tahani.nix index cbbaa93..2a9761a 100644 --- a/modules/tahani.nix +++ b/modules/tahani.nix @@ -56,8 +56,8 @@ # Auto-start zellij in nushell on tahani (headless server) programs.nushell.extraConfig = '' - if 'ZELLIJ' not-in ($env | columns) { - zellij + if $nu.is-interactive and ('SSH_CONNECTION' in ($env | columns)) and ('ZELLIJ' not-in ($env | columns)) { + exec zellij attach -c } '';