themes/{robbyrussell,rr}: Add separate prefixes for svn and hg

This commit is contained in:
Grant Jurgensen
2022-09-12 19:08:15 -05:00
committed by Koichi Murase
parent 748b5842f7
commit cde121eccd
2 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,9 @@ function _omb_theme_PROMPT_COMMAND() {
fi
local base_directory="${_omb_prompt_bold_teal}\W${_omb_prompt_reset_color}"
local SCM_THEME_PROMPT_PREFIX="${_omb_prompt_bold_navy}git:(${_omb_prompt_bold_brown}"
local GIT_THEME_PROMPT_PREFIX="${_omb_prompt_bold_navy}git:(${_omb_prompt_bold_brown}"
local SVN_THEME_PROMPT_PREFIX="${_omb_prompt_bold_navy}svn:(${_omb_prompt_bold_brown}"
local HG_THEME_PROMPT_PREFIX="${_omb_prompt_bold_navy}hg:(${_omb_prompt_bold_brown}"
local SCM_THEME_PROMPT_SUFFIX="${_omb_prompt_reset_color}"
local SCM_THEME_PROMPT_CLEAN="${_omb_prompt_bold_navy})${_omb_prompt_reset_color}"
local SCM_THEME_PROMPT_DIRTY="${_omb_prompt_bold_navy}) ${_omb_prompt_olive}${_omb_prompt_reset_color}"

View File

@@ -12,7 +12,9 @@
function _omb_theme_PROMPT_COMMAND() {
local user_name="${_omb_prompt_white}\u${_omb_prompt_reset_color}"
local base_directory="${_omb_prompt_bold_blue}\W${_omb_prompt_reset_color}"
local SCM_THEME_PROMPT_PREFIX="${_omb_prompt_bold_purple}git:(${_omb_prompt_reset_color}"
local GIT_THEME_PROMPT_PREFIX="${_omb_prompt_bold_purple}git:(${_omb_prompt_reset_color}"
local SVN_THEME_PROMPT_PREFIX="${_omb_prompt_bold_purple}svn:(${_omb_prompt_reset_color}"
local HG_THEME_PROMPT_PREFIX="${_omb_prompt_bold_purple}hg:(${_omb_prompt_reset_color}"
local SCM_THEME_PROMPT_SUFFIX="${_omb_prompt_bold_purple})${_omb_prompt_reset_color}"
local SCM_THEME_PROMPT_CLEAN="${_omb_prompt_bold_green}${_omb_prompt_reset_color}"
local SCM_THEME_PROMPT_DIRTY="${_omb_prompt_bold_red}${_omb_prompt_reset_color}"