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