[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Colorized Prompts Problem



On Fri, 1 May 2015 16:31:16 +0100
Brad Rogers <brad@fineby.me.uk> wrote:

> On Fri, 1 May 2015 11:07:46 -0400
> "Thomas H. George" <lists@tomgeorge.info> wrote:
> 
> Hello Thomas,
> 
> >I entered the following in .bashrc
> >
> >   PS1='\033[01;33m\h:\w\$ \033[00m'       
> >
> >to colorize the prompt (very handy to find the prompt when a command
> >fills the console screen with lines of text)
> 
> Lifted from my .bashrc;
> 
> PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\
> [\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
> 
> Should all be on one line of course.  It shows path, and doesn't
> overwrite prompt on line wrap, and entered command strings can be
> edited without problem.

Excuse me if this is a dumb question, but what does the "debian_chroot"
part (twice) do?

Petter

-- 
"I'm ionized"
"Are you sure?"
"I'm positive."

Attachment: pgpRC8m2fLRTi.pgp
Description: OpenPGP digital signature


Reply to: