需要编辑文档 “~/.bashrc” 即可:
1 txx@txx:precomp$ vim ~/.bashrc 2 3 4 if [ "$color_prompt" = yes ]; then 5 PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 6 else 7 PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 8 fi
将两个小写的'w',改成大写的'w'即可;
保存后退出编辑器,
再执行命令
$ source ~/.bashrc
1 txx@txx:~/sl/code/rulescanengine/precomp$ source ~/.bashrc 2 txx@txx:precomp$ ls