mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-01 06:31:04 +01:00
zellij: Add additional options for integrating with shells
This commit is contained in:
parent
908e055e15
commit
0394c71f2b
2 changed files with 73 additions and 13 deletions
|
|
@ -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"'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue