From 78a3b5949914987a71fbd7af2702b47d5089d1ba Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Sun, 5 Jun 2022 14:58:59 -0400 Subject: [PATCH] Add debugging print. --- tcshrc.prompt.final | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tcshrc.prompt.final b/tcshrc.prompt.final index be4daca..67014cd 100644 --- a/tcshrc.prompt.final +++ b/tcshrc.prompt.final @@ -2,6 +2,10 @@ ### Final Prompt Setting ### ############################ +if( $?CSHENV_DEBUG ) then + echo "Setting up dynamic colour loading..." +endif + # Recompute cached sgr codes from any configuration updates if( ! $?curr_path_color ) then set curr_path_color=impossible @@ -69,6 +73,8 @@ if( "${curr_prompt_color}" != "${prompt_color}" ) then set prompt_color_seq="%{[`__build_sgr_code no-csi reset ${curr_prompt_color}`m%}" endif +if( $?CSHENV_DEBUG ) echo "Dynamic color loading processed..." + if( ${prompt_hcolor} != 0 ) then set last_color = ${reference_colors[${prompt_hcolor}]}