1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

prezto: add missing use of yesNo

Specifically, this fixes evaluation of prompt.showReturnVal.
This commit is contained in:
James Williams 2023-02-19 00:46:00 +00:00 committed by Robert Helgesson
parent 5ffb0f1f81
commit 81f16a1e3c
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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 '${