Update simple theme

PS1 definition via PROMPT variable produces an invalid prompt
pull/565/head
Matias Ibañez 2015-09-07 01:43:40 -03:00
parent c4cc192d1d
commit 1449036285
1 changed files with 5 additions and 1 deletions

View File

@ -11,11 +11,15 @@ case $TERM in
TITLEBAR=""
;;
esac
PROMPT="${TITLEBAR}${orange}${reset_color}${green}\w${bold_blue}\[\$(scm_prompt_info)\]${reset_color} "
function prompt_command() {
PS1="${TITLEBAR}${orange}${reset_color}${green}\w${bold_blue}\[\$(scm_prompt_info)\]${reset_color} "
}
# scm themeing
SCM_THEME_PROMPT_DIRTY=" ✗"
SCM_THEME_PROMPT_CLEAN=" ✓"
SCM_THEME_PROMPT_PREFIX="("
SCM_THEME_PROMPT_SUFFIX=")"
PROMPT_COMMAND=prompt_command;