From ff6b0aff22e7dc99ba121625c3c3c01a6d39320c Mon Sep 17 00:00:00 2001 From: Christoph Schmatzler Date: Sun, 8 Mar 2026 11:37:37 +0000 Subject: [PATCH] fix zj --- modules/tahani.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/tahani.nix b/modules/tahani.nix index 2a9761a..99e650b 100644 --- a/modules/tahani.nix +++ b/modules/tahani.nix @@ -57,7 +57,12 @@ # Auto-start zellij in nushell on tahani (headless server) programs.nushell.extraConfig = '' if $nu.is-interactive and ('SSH_CONNECTION' in ($env | columns)) and ('ZELLIJ' not-in ($env | columns)) { - exec zellij attach -c + try { + zellij attach -c main + exit + } catch { + print "zellij auto-start failed; staying in shell" + } } '';