原始
修改
修改方法
vim .bashrc
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}[ 33[01;32m]u@h[ 33[00m]:[ 33[01;36m]w [ 33[00m]
$ '
else
PS1='${debian_chroot:+($debian_chroot)}u@h:w
$ '
fi
unset color_prompt force_color_prompt
# 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: wa]$PS1"
### PS1='[e[32;40m]ue[33;40m]@e[31;40m]h:e[34;40m]we[35;40m] ]
$'
ps1='[e[32;40m]u@h:e[31;40m]w ]
$'
;;
*)
;;
esac
使用source ~/.bashrc是的设置生效