Allow clock to be formatted

pull/53/head
Travis Swicegood 2011-05-30 10:12:51 -05:00
parent ccf4951d17
commit 9623fd442f
1 changed files with 7 additions and 1 deletions

View File

@ -37,8 +37,14 @@ prompt_setter() {
history -a
history -c
history -r
if [[ -z "$THEME_PROMPT_CLOCK_FORMAT" ]]
then
clock="\t"
else
clock=$THEME_PROMPT_CLOCK_FORMAT
fi
PS1="
\t $(scm_char) [\[$THEME_PROMPT_HOST_COLOR\]\u@${THEME_PROMPT_HOST}\[$reset_color\]] $(virtualenv_prompt)\w
$clock $(scm_char) [\[$THEME_PROMPT_HOST_COLOR\]\u@${THEME_PROMPT_HOST}\[$reset_color\]] $(virtualenv_prompt)\w
$(doubletime_scm_prompt)\[$reset_color\] $ "
PS2='> '
PS4='+ '