how PS1 variable is used ?
Albert Wagner
albertwagner at cox.net
Tue Dec 7 23:57:21 UTC 2010
On 12/07/2010 02:01 PM, Denis Firsov wrote:
> When i run "set" command i see bunch of variables.
> Among them i found "PS1" variable:
> PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
>
> how this variable is used ?
In this case Google is a friend: "linux PS1" I am so pleased with my
PS1 value that I have kept it through dozens of distributions.
PS1='\[\033[1;33m\]# \w\n\r# \[\033[0m\]'
Can't stand a huge prompt, displayed over and over. I usually put it in
~/.bashrc (you will have to comment out some stuff) It's in yellow so
only looks good if the background is black. I also like a slightly
larger than default font.
More information about the ubuntu-users
mailing list