Convert themes and plugins to use the update colors. Themes are no longer burdened with escaping the unprintable characters

This commit is contained in:
JFSIII
2011-06-17 19:45:21 -04:00
parent 46b8d27815
commit 1b7c9419bf
14 changed files with 94 additions and 75 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash
SCM_THEME_PROMPT_DIRTY=''
SCM_THEME_PROMPT_CLEAN=''
SCM_GIT_CHAR='${bold_cyan}±${normal}'
SCM_SVN_CHAR='${bold_cyan}⑆${normal}'
SCM_HG_CHAR='${bold_red}☿${normal}'
SCM_GIT_CHAR="${bold_cyan}±${normal}"
SCM_SVN_CHAR="${bold_cyan}${normal}"
SCM_HG_CHAR="${bold_red}${normal}"
SCM_THEME_PROMPT_PREFIX=""
SCM_THEME_PROMPT_SUFFIX=""
RVM_THEME_PROMPT_PREFIX=" ("
@@ -32,7 +32,7 @@ virtualenv_prompt() {
fi
}
prompt_setter() {
function prompt_setter() {
# Save history
history -a
history -c
@@ -44,8 +44,8 @@ prompt_setter() {
clock=$THEME_PROMPT_CLOCK_FORMAT
fi
PS1="
$clock $(scm_char) [\[$THEME_PROMPT_HOST_COLOR\]\u@${THEME_PROMPT_HOST}\[$reset_color\]] $(virtualenv_prompt)\w
$(doubletime_scm_prompt)\[$reset_color\] $ "
$clock $(scm_char) [$THEME_PROMPT_HOST_COLOR\u@${THEME_PROMPT_HOST}$reset_color] $(virtualenv_prompt)\w
$(doubletime_scm_prompt)$reset_color $ "
PS2='> '
PS4='+ '
}