1

Possible Duplicate:
What is $debian_chroot in .bashrc?
In Bash, why is PROMPT_COMMAND set to something invisible?

I logged into my computer from a normal user and executed the following command:

pratheep@pratheep-laptop:~$ echo $PS1
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$

I know that if I keep the value of PS1='\u@\h:\w\$ ' then also it will display the same.

I want to know what the extra thing in front i.e.
\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)} is for?

4
  • 3
    this previously asked question might be of some help
    – bsd
    Feb 15, 2012 at 14:05
  • this Bash PS1 "Cheat Sheet" will help explain the rest of the prefix. And, of course, The Bash Prompt HOWTO
    – bsd
    Feb 15, 2012 at 15:34
  • The debian_chroot part is explained here Feb 15, 2012 at 15:58
  • And the \[\e]0; ... \a\] part is explained here.
    – jw013
    Feb 17, 2012 at 0:11

0

Browse other questions tagged .