zsh: break configuration dependency in documentation

Before the documentation for the `programs.zsh.history.path` had a
dependency on the configuration.
This commit is contained in:
Robert Helgesson 2021-05-05 23:19:12 +02:00
parent 64c5228c08
commit 90dd375eba
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -56,6 +56,10 @@ let
default = if versionAtLeast stateVersion "20.03"
then "$HOME/.zsh_history"
else relToDotDir ".zsh_history";
defaultText = literalExample ''
"$HOME/.zsh_history" if state version 20.03,
"$ZDOTDIR/.zsh_history" otherwise
'';
example = literalExample ''"''${config.xdg.dataHome}/zsh/zsh_history"'';
description = "History file location";
};