2.home-manager/tests/modules/programs/zsh
Kristopher James Kent (kjkent) 21399deff2 zsh: improve dotDir handling
Previously, `config.programs.zsh.dotDir` prepended strings with `$HOME`.
This caused issues like nix-community#5100, where `$HOME` is
inconsistently resolved in time for the evaluation of the option. The handling
of this variable is also inconsistent with how paths are handled elsewhere,
including within the same module, where `config.programs.zsh.history.path`
does not mutate the supplied string.

To preserve backwards compatibility, this change prepends
`config.home.homeDirectory` to relative paths, while assigning absolute paths
unchanged. Tests for both cases are added.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-25 13:15:29 -05:00
..
aliases.nix treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
default.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
dotdir.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
history-ignore-pattern.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
history-path-new-custom.nix tests: rework derivation stubbing 2025-02-04 23:58:20 +01:00
history-path-new-default.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
history-path-old-custom.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
history-path-old-default.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
history-substring-search.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
plugins.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
prezto.nix zsh: consider zsh.{profile,login,logout,env}Extra in prezto 2025-05-13 19:59:12 -05:00
session-variables.nix tests: rework derivation stubbing 2025-02-04 23:58:20 +01:00
syntax-highlighting.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
zprof.nix tests/zsh: add zprof test 2025-07-12 11:42:00 -05:00
zsh-abbr.nix zsh: group plugins in a separate directory 2025-07-12 11:42:00 -05:00
zshrc-content-priorities.nix treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00