2.home-manager/tests/modules/programs/zsh
Kristopher James Kent (kjkent) 9fca491587 zsh: improve histfile handling
Previously, a stateVersion check for 20.03 determined whether or not the input to
`programs.zsh.history.path` would be prepended with `$HOME`. However, this was not
communicated in the documentation, which stated the version check determined whether
the default histfile location would be in `programs.zsh.dotDir` or
`home.homeDirectory`.

The current change simplifies matters and brings path handling in-line with that of
the preceding work on dotDir path handling. If a relative path is provided, it is
parsed as being relative to `home.homeDirectory`. Both absolute and relative paths
are supported, and are cleaned before being passed to other functions.

Tests have been rewritten for the new logic, with case handling for reusability.

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-25 13:15:29 -05:00
..
aliases.nix zsh: improve histfile handling 2025-07-25 13:15:29 -05:00
default.nix zsh: improve histfile 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.nix zsh: improve histfile 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 zsh: improve histfile handling 2025-07-25 13:15:29 -05:00