From 546949fea16cf75b4f670c75a5251afee3e5b20f Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sat, 22 Feb 2025 13:16:58 -0600 Subject: [PATCH] tests/dircolors: test zsh path --- tests/modules/programs/dircolors/settings.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/modules/programs/dircolors/settings.nix b/tests/modules/programs/dircolors/settings.nix index 456392a2..f2802aaa 100644 --- a/tests/modules/programs/dircolors/settings.nix +++ b/tests/modules/programs/dircolors/settings.nix @@ -1,5 +1,7 @@ -{ +{ pkgs, ... }: { config = { + programs.zsh.enable = true; + programs.dircolors = { enable = true; @@ -18,6 +20,11 @@ assertFileContent \ home-files/.dir_colors \ ${./settings-expected.conf} + + + assertFileRegex \ + home-files/.zshrc \ + "eval \$(${pkgs.coreutils}/bin/dircolors -b ~/.dir_colors)" ''; }; }