I have installed my first dualboot linux a couple of days ago. While I am customizing my terminal, I came by this problem. While escaping works correctly in the
PS1 variable, it’s not working in the
WHITE="\e[97m" BOLD="\e[1m" RESET="\e[0m" PS1="$BOLD[\A - @\h:$WHITE\W\e[m]\n\\$ $RESET" HISTTIMEFORMAT="$WHITE[%F %T] $RESET"
One way around this is using
-e as follows
HISTTIMEFORMAT=`echo -e $WHITE[%F %T] $RESET`
But I still want to know why the first method is not working?