From 90dd375eba16e11949d4a4a7538554dc8e9ceb8f Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 5 May 2021 23:19:12 +0200 Subject: [PATCH] zsh: break configuration dependency in documentation Before the documentation for the `programs.zsh.history.path` had a dependency on the configuration. --- modules/programs/zsh.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/programs/zsh.nix b/modules/programs/zsh.nix index d0f94509..5e5aeb21 100644 --- a/modules/programs/zsh.nix +++ b/modules/programs/zsh.nix @@ -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"; };