adding zellij
This commit is contained in:
parent
6bc92a0a46
commit
3d33a5051d
2 changed files with 17 additions and 0 deletions
|
@ -1035,6 +1035,22 @@ end
|
|||
$env.config = {
|
||||
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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue