Restore force_color_prompt setting

This commit is contained in:
Sonny Bakker 2024-05-27 10:11:53 +02:00
parent 2e95e8a7df
commit 15f8d6180c

View file

@ -26,13 +26,13 @@ shopt -s checkwinsize
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt=yes;;
xterm-color|*-256color|alacritty) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
force_color_prompt=yes
#force_color_prompt=yes
if [ "$force_color_prompt" == "yes" ] && [ -z "$color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setf 1 >&/dev/null; then