From 67f4542811deaca499b645c3081184f4634c4d8b Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Fri, 7 Mar 2025 23:12:50 -0500 Subject: [PATCH] A bit of style cleanup. --- tcshrc.prompt.final | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index da6b5c9..6ac69bb 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -150,6 +150,7 @@ endif if( $?CSHENV_DEBUG ) echo "Dynamic color loading processed..." + if( ${prompt_hcolor} != 0 ) then set last_color = ${reference_colors[${prompt_hcolor}]} endif @@ -167,7 +168,6 @@ set medium_battery_level = 50 set strong_battery_level = 75 - while( ${prompt_hcolor} == 0 ) if( $?CSHENV_DEBUG ) then echo colorshuffle @@ -342,6 +342,7 @@ if( ! $?CSHENV_DISABLE_PROMPT_NESTING ) then endif endif endif + if( ! $?CSHENV_DISABLE_PROMPT_USER ) then set user_prompt_view="${user_color_seq}${user_prompt}%{${sgr_reset}%}" if( ! $?CSHENV_DISABLE_PROMPT_HOST ) then @@ -355,6 +356,7 @@ if( ! $?CSHENV_DISABLE_PROMPT_HOST ) then endif set host_prompt_view="${host_color_seq}${host_prompt}%{${text_color_seq}%}${host_prompt_tail}" endif + if( ! $?CSHENV_DISABLE_PROMPT_GIT ) then set git_prompt_view="${git_prompt}" endif