|
|
@ -1569,18 +1569,6 @@ prompt_detect_virt() {
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# Test icons
|
|
|
|
|
|
|
|
prompt_icons_test() {
|
|
|
|
|
|
|
|
for key in ${(@k)icons}; do
|
|
|
|
|
|
|
|
# The lower color spectrum in ZSH makes big steps. Choosing
|
|
|
|
|
|
|
|
# the next color has enough contrast to read.
|
|
|
|
|
|
|
|
local random_color=$((RANDOM % 8))
|
|
|
|
|
|
|
|
local next_color=$((random_color+1))
|
|
|
|
|
|
|
|
"$1_prompt_segment" "$0" "$2" "$random_color" "$next_color" "$key" 0 '' "$key"
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
################################################################
|
|
|
|
################################################################
|
|
|
|
# Segment to display the current IP address
|
|
|
|
# Segment to display the current IP address
|
|
|
|
prompt_ip() {
|
|
|
|
prompt_ip() {
|
|
|
|