1
0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-12 19:18:28 +02:00

bug fix: support POWERLEVEL9K_STATUS_VERBOSE=false

This commit is contained in:
romkatv 2019-03-04 03:22:14 +01:00
parent da8f412197
commit eaa555c00f

View File

@ -1491,6 +1491,8 @@ prompt_status() {
fi fi
elif [[ "$POWERLEVEL9K_STATUS_OK" == true ]] && [[ "$POWERLEVEL9K_STATUS_VERBOSE" == true || "$POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE" == true ]]; then elif [[ "$POWERLEVEL9K_STATUS_OK" == true ]] && [[ "$POWERLEVEL9K_STATUS_VERBOSE" == true || "$POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE" == true ]]; then
_P9K_RETVAL="$0_OK ${(qq)2} ${(qq)DEFAULT_COLOR} green '' OK_ICON" _P9K_RETVAL="$0_OK ${(qq)2} ${(qq)DEFAULT_COLOR} green '' OK_ICON"
else
return
fi fi
if (( $#RETVALS < 3 )); then if (( $#RETVALS < 3 )); then
_p9k_cache_set $cache_key $_P9K_RETVAL _p9k_cache_set $cache_key $_P9K_RETVAL