From 1027211c4aab4656ed103de8074294a5a4655a60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Chocholat=C3=BD?= Date: Sun, 3 Nov 2024 19:58:50 +0100 Subject: [PATCH] zellij: Add tests for additional options for shell integration --- tests/modules/programs/zellij/enable-shells.nix | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/modules/programs/zellij/enable-shells.nix b/tests/modules/programs/zellij/enable-shells.nix index c648cf7dd..ffd644480 100644 --- a/tests/modules/programs/zellij/enable-shells.nix +++ b/tests/modules/programs/zellij/enable-shells.nix @@ -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; @@ -37,5 +44,13 @@ assertFileContains \ home-files/.config/fish/config.fish \ '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"' ''; }