1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-05 08:31:03 +01:00
home-manager/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
..
plugins zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
default.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00
deprecated.nix zsh: move deprecated options to separate file 2025-07-12 11:42:00 -05:00
history.nix zsh: improve histfile handling 2025-07-25 13:15:29 -05:00
lib.nix zsh: improve dotDir handling 2025-07-25 13:15:29 -05:00