Allow clock to be formatted
This commit is contained in:
@@ -37,8 +37,14 @@ prompt_setter() {
|
|||||||
history -a
|
history -a
|
||||||
history -c
|
history -c
|
||||||
history -r
|
history -r
|
||||||
|
if [[ -z "$THEME_PROMPT_CLOCK_FORMAT" ]]
|
||||||
|
then
|
||||||
|
clock="\t"
|
||||||
|
else
|
||||||
|
clock=$THEME_PROMPT_CLOCK_FORMAT
|
||||||
|
fi
|
||||||
PS1="
|
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\] $ "
|
$(doubletime_scm_prompt)\[$reset_color\] $ "
|
||||||
PS2='> '
|
PS2='> '
|
||||||
PS4='+ '
|
PS4='+ '
|
||||||
|
|||||||
Reference in New Issue
Block a user