mirror of
https://github.com/nix-community/home-manager
synced 2025-01-30 21:05:02 +01:00
zellij: Add tests for additional options for shell integration
This commit is contained in:
parent
b87b657770
commit
1027211c4a
1 changed files with 16 additions and 1 deletions
|
@ -4,9 +4,16 @@
|
||||||
programs = {
|
programs = {
|
||||||
zellij = {
|
zellij = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableBashIntegration = true;
|
|
||||||
|
autostartOnShellStart = {
|
||||||
|
enable = true;
|
||||||
|
attachExistingSession = true;
|
||||||
|
exitShellOnExit = true;
|
||||||
|
};
|
||||||
|
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
};
|
};
|
||||||
bash.enable = true;
|
bash.enable = true;
|
||||||
zsh.enable = true;
|
zsh.enable = true;
|
||||||
|
@ -37,5 +44,13 @@
|
||||||
assertFileContains \
|
assertFileContains \
|
||||||
home-files/.config/fish/config.fish \
|
home-files/.config/fish/config.fish \
|
||||||
'eval (@zellij@/bin/dummy setup --generate-auto-start fish | string collect)'
|
'eval (@zellij@/bin/dummy 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
Reference in a new issue