~xdavidwu/dotfiles

a9e9642b4e6010befc354a33ef360eec1bca8e11 — xdavidwu 3 years ago b0e56b8
bashrc: ps1: fix escape
1 files changed, 1 insertions(+), 1 deletions(-)

M .bashrc
M .bashrc => .bashrc +1 -1
@@ 48,7 48,7 @@ HISTSIZE=2048
HISTFILESIZE=2048
HISTIGNORE="history:exit:top:ls:clear:mount:python"

PS1="\[\033[01;32m\]\u@\h${STY:+>${STY#*\.}} \[\033[01;34m\]\W\[\033[31m\${?#0}\[\033[0m\]\\$ "
PS1="\[\033[01;32m\]\u@\h${STY:+>${STY#*\.}} \[\033[01;34m\]\W\[\033[31m\]\${?#0}\[\033[0m\]\\$ "

# aliases
if [ "${OSTYPE%%-*}" = "linux" ];then