Re: Colorized Prompts Problem
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)
Reply to: