From 81f16a1e3c07bc3dffb9733f4ce5a344bf5b4c43 Mon Sep 17 00:00:00 2001 From: James Williams <51956016+jamesreprise@users.noreply.github.com> Date: Sun, 19 Feb 2023 00:46:00 +0000 Subject: [PATCH] prezto: add missing use of yesNo Specifically, this fixes evaluation of prompt.showReturnVal. --- modules/programs/zsh/prezto.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/programs/zsh/prezto.nix b/modules/programs/zsh/prezto.nix index 17680ff25..b4e9ca195 100644 --- a/modules/programs/zsh/prezto.nix +++ b/modules/programs/zsh/prezto.nix @@ -443,7 +443,9 @@ in { zstyle ':prezto:module:prompt' pwd-length '${cfg.prompt.pwdLength}' ''} ${optionalString (cfg.prompt.showReturnVal != null) '' - zstyle ':prezto:module:prompt' show-return-val '${cfg.prompt.showReturnVal}' + zstyle ':prezto:module:prompt' show-return-val '${ + lib.hm.booleans.yesNo cfg.prompt.showReturnVal + }' ''} ${optionalString (cfg.python.virtualenvAutoSwitch != null) '' zstyle ':prezto:module:python:virtualenv' auto-switch '${