From c24c298562fe41b39909f632c5a7151bbf6b4628 Mon Sep 17 00:00:00 2001 From: not pua <140790944+im-notpua@users.noreply.github.com> Date: Wed, 27 Sep 2023 12:25:20 +0000 Subject: [PATCH] zsh.prezto: fix path in example for 'pmoduleDirs' Minor fix in documentation. The example in `programs.zsh.prezto.pmoduleDirs` is not compatible with shell environment variables like `$HOME`, must be replaced with nix compatible variables eg: `home.homeDirectory`. Fixes #4452 --- modules/programs/zsh/prezto.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/programs/zsh/prezto.nix b/modules/programs/zsh/prezto.nix index ddf862f98..1aa3af1e9 100644 --- a/modules/programs/zsh/prezto.nix +++ b/modules/programs/zsh/prezto.nix @@ -34,7 +34,8 @@ let pmoduleDirs = mkOption { type = types.listOf types.path; default = [ ]; - example = [ "$HOME/.zprezto-contrib" ]; + example = literalExpression + ''[ "''${config.home.homeDirectory}/.zprezto-contrib" ]''; description = "Add additional directories to load prezto modules from."; };