分页: 1 / 1

ubuntu默认PS1

发表于 : 2011-10-05 16:09
shmily623
我的ubuntu10.04上的PS1的值为
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$

前面的\[\e]0;\u@\h: \w\a\]是什么意思?

Re: ubuntu默认PS1

发表于 : 2011-10-05 16:23
tusooa
显示在标题栏里边的。
你去看看那终端标题。

Re: ubuntu默认PS1

发表于 : 2011-10-05 20:25
eexpress
颜色代码,夹杂一些设置。
● echo $PS1
\[\e[31;40m\]\D{%Y-%m-%d %H:%M:%S %a}\[\e[32;40m\] \w \[\e[m\]\n●

Re: ubuntu默认PS1

发表于 : 2011-10-05 22:37
shmily623
确实是这样,谢谢 tusooa