vi .bashrc
找到
# If this is an xterm set the title to user@host :dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
将红色字体修改为PS1="[\u@\h:\W]\\$ ",即可。
重启terminal后生效。
vi .bashrc
找到
# If this is an xterm set the title to user@host :dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
将红色字体修改为PS1="[\u@\h:\W]\\$ ",即可。
重启terminal后生效。
转载于:https://my.oschina.net/farces/blog/266415