From ce6a90c2205a17cc33ac07e466dd12e615eee9db Mon Sep 17 00:00:00 2001 From: Travis Swicegood Date: Wed, 18 Oct 2017 16:03:06 -0500 Subject: [PATCH] Add ability to specify the path color --- themes/purity/purity.theme.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/purity/purity.theme.bash b/themes/purity/purity.theme.bash index fd8b60ed..c60e4af3 100644 --- a/themes/purity/purity.theme.bash +++ b/themes/purity/purity.theme.bash @@ -12,10 +12,11 @@ GIT_THEME_PROMPT_SUFFIX=" ${reset_color})" STATUS_THEME_PROMPT_BAD="${bold_red}❯${reset_color}${normal} " STATUS_THEME_PROMPT_OK="${bold_green}❯${reset_color}${normal} " +PURITY_THEME_PROMPT_COLOR="${PURITY_THEME_PROMPT_COLOR:=$blue}" function prompt_command() { local ret_status="$( [ $? -eq 0 ] && echo -e "$STATUS_THEME_PROMPT_OK" || echo -e "$STATUS_THEME_PROMPT_BAD")" - PS1="\n${blue}\w $(scm_prompt_info)\n${ret_status} " + PS1="\n${PURITY_THEME_PROMPT_COLOR}\w $(scm_prompt_info)\n${ret_status} " } safe_append_prompt_command prompt_command