Use exec zellij attach in SSH Nushell startup
This commit is contained in:
@@ -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
|
||||
}
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user