Escape $ and #

This commit is contained in:
Anthony Rose 2020-10-27 13:30:01 +00:00
parent 93ed666005
commit 5f5ff781c2

View file

@ -101,9 +101,9 @@ if [ "$BASH" ]; then
bind '"\e[B": history-search-forward' bind '"\e[B": history-search-forward'
if test $(id -u) -eq 0; then if test $(id -u) -eq 0; then
export PS1="\[\033[01;32m\]\h\[\033[01;31m\]#\[\033[00m\] " export PS1="\[\033[01;32m\]\h\[\033[01;31m\]\#\[\033[00m\] "
else else
export PS1="\[\033[01;32m\]\h\[\033[01;34m\]$\[\033[00m\] " export PS1="\[\033[01;32m\]\h\[\033[01;34m\]\$\[\033[00m\] "
fi fi
fi fi