diff --git a/themes/powerline-icon/powerline-icon.base.sh b/themes/powerline-icon/powerline-icon.base.sh index 76e6e66bc..afd792c76 100644 --- a/themes/powerline-icon/powerline-icon.base.sh +++ b/themes/powerline-icon/powerline-icon.base.sh @@ -35,5 +35,9 @@ function __powerline_cwd_prompt { } function __powerline_last_status_prompt { - [[ "$1" -ne 0 ]] && echo "❌${1}|${LAST_STATUS_THEME_PROMPT_COLOR}" || echo "✅|${LAST_STATUS_THEME_PROMPT_COLOR_2}" + if [[ "$1" -ne 0 ]]; then + echo "❌${1}|${LAST_STATUS_THEME_PROMPT_COLOR}" + else + echo "✅|${LAST_STATUS_THEME_PROMPT_COLOR_SUCCESS}" + fi } diff --git a/themes/powerline-icon/powerline-icon.theme.sh b/themes/powerline-icon/powerline-icon.theme.sh index 3f6f17bba..b4cf4be9c 100644 --- a/themes/powerline-icon/powerline-icon.theme.sh +++ b/themes/powerline-icon/powerline-icon.theme.sh @@ -34,6 +34,7 @@ RUBY_CHAR=${POWERLINE_RUBY_CHAR:="❲r❳ "} CWD_THEME_PROMPT_COLOR=30 LAST_STATUS_THEME_PROMPT_COLOR=52 +LAST_STATUS_THEME_PROMPT_COLOR_SUCCESS=42 CLOCK_THEME_PROMPT_COLOR=240 @@ -49,7 +50,5 @@ IN_VIM_THEME_PROMPT_TEXT="vim" POWERLINE_PROMPT=${POWERLINE_PROMPT:="user_info scm python_venv ruby cwd"} -LAST_STATUS_THEME_PROMPT_COLOR_2=42 - function _omb_theme_PROMPT_COMMAND { __powerline_prompt_command "$@"; } _omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND