From 301060cce25df1e6668e0a407ab14d2deaefa26a Mon Sep 17 00:00:00 2001 From: Ivan Font Date: Sun, 23 Apr 2017 18:00:06 -0700 Subject: [PATCH] Update font theme - Use new user_host_prompt to add more configurability to theme - Disable default clock being shown --- themes/font/font.theme.bash | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/themes/font/font.theme.bash b/themes/font/font.theme.bash index 679528e7..2dbcccea 100644 --- a/themes/font/font.theme.bash +++ b/themes/font/font.theme.bash @@ -30,10 +30,14 @@ SCM_GIT_SHOW_MINIMAL_INFO=true CLOCK_THEME_PROMPT_PREFIX='' CLOCK_THEME_PROMPT_SUFFIX=' ' -THEME_SHOW_CLOCK=true +THEME_SHOW_CLOCK=false THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$bold_blue"} THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-"%I:%M:%S"} +THEME_SHOW_USER_HOST=true +USER_HOST_THEME_PROMPT_PREFIX="${bold_black}" +USER_HOST_THEME_PROMPT_SUFFIX=" " + VIRTUALENV_THEME_PROMPT_PREFIX='(' VIRTUALENV_THEME_PROMPT_SUFFIX=') ' @@ -54,7 +58,7 @@ function prompt_command() { # Append new history lines to history file history -a - PS1="$(clock_prompt)${virtualenv}${hostname} ${bold_cyan}\W $(scm_prompt_char_info)${ret_status}→ ${normal}" + PS1="$(clock_prompt)${virtualenv}$(user_host_prompt)${bold_cyan}\W $(scm_prompt_char_info)${ret_status}→ ${normal}" } safe_append_prompt_command prompt_command