adding zellij

This commit is contained in:
Chris Cochrun 2024-11-22 16:49:30 -06:00
parent 6bc92a0a46
commit 3d33a5051d
2 changed files with 17 additions and 0 deletions

View file

@ -1035,6 +1035,22 @@ end
$env.config = { $env.config = {
show_banner: false show_banner: false
} }
def start_zellij [] {
if 'ZELLIJ' not-in ($env | columns) {
if 'ZELLIJ_AUTO_ATTACH' in ($env | columns) and $env.ZELLIJ_AUTO_ATTACH == 'true' {
zellij attach -c
} else {
zellij
}
if 'ZELLIJ_AUTO_EXIT' in ($env | columns) and $env.ZELLIJ_AUTO_EXIT == 'true' {
exit
}
}
}
start_zellij
''; '';
}; };
environmentVariables = { environmentVariables = {

View file

@ -9,6 +9,7 @@
smartmontools smartmontools
git git
tmux tmux
zellij
dutree dutree
cachix cachix
unzip unzip