On Sat, May 02, 2015 at 11:08:20AM +0200, Petter Adsen wrote:
...
> > PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\
> > [\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
...
> Excuse me if this is a dumb question, but what does the "debian_chroot"
> part (twice) do?

If the debian_chroot environment variable is defined, then it is included
in the prompt, surrounded by brackets. You can try it out by just 

    export debian_chroot=testing

and 

    export debian_chroot=

to remove again. (assuming you've defined PS1 as above)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150503100154.gd29...@chew.redmars.org

Reply via email to