This commit is contained in:
2026-03-08 11:37:37 +00:00
parent dd59c33256
commit ff6b0aff22

View File

@@ -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"
}
}
'';