2.home-manager/tests/modules
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
..
accounts tests: remove with lib (#6511) 2025-02-21 23:20:07 -06:00
config tests/home-cursor: don't use realPkgs 2025-04-18 15:56:09 -07:00
dbus dbus: Create with pacakges options (#7064) 2025-05-15 12:59:12 -05:00
files treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
home-environment dconf: revert: dconf: Provide dconf (#7215) 2025-06-05 15:06:51 -05:00
i18n/input-method fcitx5: fix iniFormat usage (#6899) 2025-04-23 15:10:12 -05:00
launchd treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
misc nix: use-sandbox -> sandbox (#7475) 2025-07-15 10:22:11 -05:00
programs zsh: improve histfile handling 2025-07-25 13:15:29 -05:00
services treewide: format with latest stable formatter 2025-07-23 10:27:52 -05:00
systemd treewide: remove unused code (#6985) 2025-05-07 10:03:21 -05:00
targets-darwin treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
targets-linux treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00
xresources treewide: reformat nixfmt-rfc-style 2025-04-08 08:50:05 -07:00