|
|
@ -740,16 +740,14 @@ prompt_rvm() {
|
|
|
|
# Status: return code if verbose, otherwise just an icon if an error occurred
|
|
|
|
# Status: return code if verbose, otherwise just an icon if an error occurred
|
|
|
|
set_default POWERLEVEL9K_STATUS_VERBOSE true
|
|
|
|
set_default POWERLEVEL9K_STATUS_VERBOSE true
|
|
|
|
prompt_status() {
|
|
|
|
prompt_status() {
|
|
|
|
if [[ "$POWERLEVEL9K_STATUS_VERBOSE" == true ]]; then
|
|
|
|
|
|
|
|
if [[ "$RETVAL" -ne 0 ]]; then
|
|
|
|
if [[ "$RETVAL" -ne 0 ]]; then
|
|
|
|
|
|
|
|
if [[ "$POWERLEVEL9K_STATUS_VERBOSE" == true ]]; then
|
|
|
|
"$1_prompt_segment" "$0_ERROR" "$2" "red" "226" "$RETVAL" 'CARRIAGE_RETURN_ICON'
|
|
|
|
"$1_prompt_segment" "$0_ERROR" "$2" "red" "226" "$RETVAL" 'CARRIAGE_RETURN_ICON'
|
|
|
|
else
|
|
|
|
else
|
|
|
|
"$1_prompt_segment" "$0_OK" "$2" "$DEFAULT_COLOR" "046" "" 'OK_ICON'
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if [[ "$RETVAL" -ne 0 ]]; then
|
|
|
|
|
|
|
|
"$1_prompt_segment" "$0_ERROR" "$2" "$DEFAULT_COLOR" "red" "" 'FAIL_ICON'
|
|
|
|
"$1_prompt_segment" "$0_ERROR" "$2" "$DEFAULT_COLOR" "red" "" 'FAIL_ICON'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
"$1_prompt_segment" "$0_OK" "$2" "$DEFAULT_COLOR" "046" "" 'OK_ICON'
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1082,4 +1080,3 @@ powerlevel9k_init() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
powerlevel9k_init "$@"
|
|
|
|
powerlevel9k_init "$@"
|
|
|
|
|
|
|
|
|
|
|
|