Use isso:
PS1="\[3[01;32m\]\u\[3[0;37m\]@\[3[01;37m\]\h:\[3[01;34m\]\w \[3[01;35m\]$ \[3[0;37m\]"
Eu tenho medo de não entender os detalhes, então não posso dar uma resposta completa de por que isso está acontecendo. Eu acho que isso se resume a diferentes emuladores de terminal com diferentes formatos para as seqüências de escape ANSI , mas eu sou não tenho certeza.
O que fiz na linha acima é traduzir o uso de \e
para o equivalente \[3[
. Aquele parece funcionar, pelo menos no meu terminal.