All the debugging I could find.
This commit is contained in:
+11
-24
@@ -12,9 +12,7 @@
|
||||
# echo "Loaded prompt session information."
|
||||
#endif
|
||||
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo "Setting up dynamic colour loading..."
|
||||
endif
|
||||
_debug "Setting up dynamic colour loading..."
|
||||
|
||||
# Recompute cached sgr codes from any configuration updates
|
||||
if( ! $?curr_branch_color ) then
|
||||
@@ -145,7 +143,7 @@ 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..."
|
||||
_debug "Dynamic color loading processed..."
|
||||
|
||||
|
||||
|
||||
@@ -167,9 +165,7 @@ set strong_battery_level = 75
|
||||
|
||||
|
||||
while( ${prompt_hcolor} == 0 )
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo colorshuffle
|
||||
endif
|
||||
_debug colorshuffle
|
||||
#echo
|
||||
# Shuffle, if supported
|
||||
if( $?CSHENV_DETECTED_SHUF ) then
|
||||
@@ -189,9 +185,7 @@ end
|
||||
|
||||
|
||||
while( ${prompt_hsym} == 0 )
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo symbolshuffle
|
||||
endif
|
||||
_debug symbolshuffle
|
||||
#echo
|
||||
if( $?CSHENV_DETECTED_SHUF ) then
|
||||
set referencechars=`shuf -e $referencechars`
|
||||
@@ -213,8 +207,8 @@ end
|
||||
@ prompt_hsym = ${prompt_hsym} + 1
|
||||
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo ${prompt_hcolor} ${prompt_hsym}
|
||||
echo "Setting prompt"
|
||||
_debug ${prompt_hcolor} ${prompt_hsym}
|
||||
_debug "Setting prompt"
|
||||
endif
|
||||
|
||||
|
||||
@@ -328,9 +322,7 @@ set date_prompt_view=""
|
||||
set battery_prompt_view=""
|
||||
set internal_bracket_view=""
|
||||
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo "About to setup prompt members, with disable checks"
|
||||
endif
|
||||
_debug "About to setup prompt members, with disable checks"
|
||||
|
||||
if( ! $?CSHENV_DISABLE_PROMPT_SIGIL ) then
|
||||
set prompt_reference_view="${prompt_reference}"
|
||||
@@ -352,9 +344,8 @@ if( ! $?CSHENV_DISABLE_PROMPT_NESTING ) then
|
||||
endif
|
||||
endif
|
||||
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo "Up to the user and host checks..."
|
||||
endif
|
||||
|
||||
_debug "Up to the user and host checks..."
|
||||
set host_prompt_tail=": "
|
||||
if( ! $?CSHENV_DISABLE_PROMPT_USER ) then
|
||||
set user_prompt_view="${user_color_seq}${user_prompt}%{${sgr_reset}%}"
|
||||
@@ -384,9 +375,7 @@ if( ! $?CSHENV_DISABLE_PROMPT_DIRS ) then
|
||||
endif
|
||||
endif
|
||||
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo "Up to the time, date, and battery checks..."
|
||||
endif
|
||||
_debug "Up to the time, date, and battery checks..."
|
||||
if( ! $?CSHENV_DISABLE_PROMPT_TIME ) then
|
||||
set time_prompt_view="%{${time_color_seq}%}${time_prompt}%{${sgr_reset}%}"
|
||||
endif
|
||||
@@ -397,9 +386,7 @@ if( ! $?CSHENV_DISABLE_PROMPT_BATTERY ) then
|
||||
set battery_prompt_view="${battery_prefix}${battery_prompt}"
|
||||
endif
|
||||
|
||||
if( $?CSHENV_DEBUG ) then
|
||||
echo "Doing the internal bracket setup..."
|
||||
endif
|
||||
_debug "Doing the internal bracket setup..."
|
||||
set internal_bracket_prompt="${prompt_reference_view}${line_prompt_view}${depth_prompt_view}${line_spacer_view}${user_prompt_view}${at_view}${host_prompt_view}${git_prompt_view}${path_prompt_view}${dirs_prompt_view}"
|
||||
if( "" != "${internal_bracket_prompt}" ) then
|
||||
#echo "I see scratch -${prompt_reference_view}${line_prompt_view}${depth_prompt_view}${line_spacer_view}${user_prompt_view}${at_view}${host_prompt_view}${git_prompt_view}${path_prompt_view}${dirs_prompt_view}-"
|
||||
|
||||
Reference in New Issue
Block a user