mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
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:
parent
64c5228c08
commit
90dd375eba
1 changed files with 4 additions and 0 deletions
|
@ -56,6 +56,10 @@ let
|
||||||
default = if versionAtLeast stateVersion "20.03"
|
default = if versionAtLeast stateVersion "20.03"
|
||||||
then "$HOME/.zsh_history"
|
then "$HOME/.zsh_history"
|
||||||
else relToDotDir ".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"'';
|
example = literalExample ''"''${config.xdg.dataHome}/zsh/zsh_history"'';
|
||||||
description = "History file location";
|
description = "History file location";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue