Shuf detection doesn't use an env-var.

This commit is contained in:
2026-06-28 01:33:09 -04:00
parent 2ddb0fc662
commit f6b6d4ad98
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ _debug "Sourcing prompt setup and definitions..."
which shuf >& /dev/null which shuf >& /dev/null
if( $? == 0 ) then if( $? == 0 ) then
setenv CSHENV_DETECTED_SHUF set cshenv_detected_shuf
endif endif
if( ! $?unknown_tty ) then if( ! $?unknown_tty ) then
+2 -2
View File
@@ -78,7 +78,7 @@ while( ${prompt_hcolor} == 0 )
_debug colorshuffle _debug colorshuffle
#echo  #echo 
# Shuffle, if supported # Shuffle, if supported
if( $?CSHENV_DETECTED_SHUF ) then if( $?cshenv_detected_shuf ) then
set reference_colors=`shuf -e $reference_colors` set reference_colors=`shuf -e $reference_colors`
else else
#echo "FALLBACK COLOR!" #echo "FALLBACK COLOR!"
@@ -97,7 +97,7 @@ end
while( ${prompt_hsym} == 0 ) while( ${prompt_hsym} == 0 )
_debug symbolshuffle _debug symbolshuffle
#echo  #echo 
if( $?CSHENV_DETECTED_SHUF ) then if( $?cshenv_detected_shuf ) then
set referencechars=`shuf -e $referencechars` set referencechars=`shuf -e $referencechars`
#set reference_colors=`shuf -e $reference_colors` #set reference_colors=`shuf -e $reference_colors`
else else