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)
|
# Auto-start zellij in nushell on tahani (headless server)
|
||||||
programs.nushell.extraConfig = ''
|
programs.nushell.extraConfig = ''
|
||||||
if 'ZELLIJ' not-in ($env | columns) {
|
if $nu.is-interactive and ('SSH_CONNECTION' in ($env | columns)) and ('ZELLIJ' not-in ($env | columns)) {
|
||||||
zellij
|
exec zellij attach -c
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user