refactor themes to support standardized clock functions
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
|
||||
# based of the candy theme, but minimized by odbol
|
||||
function prompt_command() {
|
||||
PS1="${blue}\T ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} ";
|
||||
PS1="$(clock_prompt) ${reset_color}${white}\w${reset_color}$(scm_prompt_info)${blue} →${bold_blue} ${reset_color} ";
|
||||
}
|
||||
|
||||
safe_append_prompt_command prompt_command
|
||||
THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$blue"}
|
||||
THEME_CLOCK_FORMAT=${THEME_CLOCK_FORMAT:-"%I:%M:%S"}
|
||||
|
||||
safe_append_prompt_command prompt_command
|
||||
|
||||
Reference in New Issue
Block a user