From 6068a4093b6b36544d0e95e0b7bd9155205ec9d8 Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Wed, 4 Oct 2023 07:01:04 +0900 Subject: [PATCH] themes/purity: Deprecate old configuration names --- themes/purity/purity.theme.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/themes/purity/purity.theme.sh b/themes/purity/purity.theme.sh index 5c95d78..26b388e 100644 --- a/themes/purity/purity.theme.sh +++ b/themes/purity/purity.theme.sh @@ -10,14 +10,16 @@ GIT_THEME_PROMPT_CLEAN=" ${_omb_prompt_bold_green}✓${_omb_prompt_normal}" GIT_THEME_PROMPT_PREFIX="${_omb_prompt_reset_color}( " GIT_THEME_PROMPT_SUFFIX=" ${_omb_prompt_reset_color})" -STATUS_THEME_PROMPT_BAD="${_omb_prompt_bold_brown}❯${_omb_prompt_reset_color}${_omb_prompt_normal} " -STATUS_THEME_PROMPT_OK="${_omb_prompt_bold_green}❯${_omb_prompt_reset_color}${_omb_prompt_normal} " +OMB_THEME_PURITY_STATUS_BAD="${_omb_prompt_bold_brown}❯${_omb_prompt_reset_color}${_omb_prompt_normal} " +OMB_THEME_PURITY_STATUS_OK="${_omb_prompt_bold_green}❯${_omb_prompt_reset_color}${_omb_prompt_normal} " +_omb_deprecate_declare 20000 STATUS_THEME_PROMPT_BAD OMB_THEME_PURITY_STATUS_BAD +_omb_deprecate_declare 20000 STATUS_THEME_PROMPT_OK OMB_THEME_PURITY_STATUS_OK function _omb_theme_PROMPT_COMMAND { if (($? == 0)); then - local ret_status=${STATUS_THEME_PROMPT_BAD-} + local ret_status=${STATUS_THEME_PROMPT_OK:-${OMB_THEME_PURITY_STATUS_OK-}} else - local ret_status=${STATUS_THEME_PROMPT_OK-} + local ret_status=${STATUS_THEME_PROMPT_BAD:-${OMB_THEME_PURITY_STATUS_BAD-}} fi PS1="\n${_omb_prompt_navy}\w $(scm_prompt_info)\n${ret_status} " }