1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-01 14:41:03 +01:00

zellij: Add additional options for integrating with shells

This commit is contained in:
David Chocholatý 2024-11-03 18:20:23 +01:00 committed by Austin Horstman
parent 908e055e15
commit 0394c71f2b
2 changed files with 73 additions and 13 deletions

View file

@ -4,9 +4,16 @@
programs = {
zellij = {
enable = true;
enableBashIntegration = true;
autostartOnShellStart = {
enable = true;
attachExistingSession = true;
exitShellOnExit = true;
};
enableZshIntegration = true;
enableFishIntegration = true;
enableBashIntegration = true;
};
bash.enable = true;
zsh.enable = true;
@ -32,5 +39,13 @@
assertFileContains \
home-files/.config/fish/config.fish \
'eval (@zellij@/bin/zellij setup --generate-auto-start fish | string collect)'
assertFileExists home-path/etc/profile.d/hm-session-vars.sh
assertFileContains \
home-path/etc/profile.d/hm-session-vars.sh \
'export ZELLIJ_AUTO_ATTACH="true"'
assertFileContains \
home-path/etc/profile.d/hm-session-vars.sh \
'export ZELLIJ_AUTO_EXIT="true"'
'';
}