added escapes around the escapes in PS1

This commit is contained in:
Zander Thannhauser 2025-04-26 09:23:06 -05:00
parent f459c86106
commit 739e31a339

3
bashrc
View file

@ -39,4 +39,5 @@ function cdtemp()
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# export PS1="\e[0m\u@\h:\w\a\$ " # export PS1="\e[0m\u@\h:\w\a\$ "
export PS1="\e[0m\e[01;32m\u\e[0m@\e[01;35m\h\e[0m:\e[01;34m\w\a\\e[0m$ " # export PS1="\e[0m\e[01;32m\u\e[0m@\e[01;35m\h\e[0m:\e[01;34m\w\a\\e[0m$ "
export PS1="\[\e[0m\e[01;32m\]\u\[\e[0m\]@\[\e[01;35m\]\h\[\e[0m\]:\[\e[01;34m\]\w\a\\[\e[0m\]$ "