页面

2008-09-13

The Color Prompt on Linux

I edited file '.bashrc' and set the variable PS1 as follow:
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00
m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
Now, my prompt is colorful.

没有评论: