Re: ..cute prompts in debian and knoppix?
On Sat, 11 Oct 2003 16:08:24 -0400,
Naitik Shah <naitik@gamebox.net> wrote in message
<[🔎] 20031011200830.8265A1F703@murphy.debian.org>:
> On Sat, Oct 11, 2003 at 09:49:28PM +0200, Arnt Karlsen wrote:
> > Hi,
> >
> > ..with Red Hat-7.3 thru -9, in /etc/bashrc, I used:
> > PS1='\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\H\[\033[1;37m\]:\
> > \[\033[1;31m\]\w \[\033[1;36m\]\$ \[\033[0m\]'
> > to get "yellow-user@green.box.name:/red/path/ # ", with "#" or "$"
> > in cyan, and ":" and "@" in white, which I like a lot.
> > Knoppix uses an all-cyan Red Hat style prompt.
> > RH's own PS1="[\u@\h \W]\\$ " is all white.
> >
> > ..now, in debian and derivatives, _where_ do I set this?
>
> You could try setting it in your ~/.bash_profile or for
> globally setting it, put in in /etc/profile . Also, make
> sure you don't reset it in ~/.bash_profile as /etc/profile
> gets executed first, and then ~/.bash_profile.
>
> Naitik.
>
>
..ah, it's the _combination_ of these. ;-) Thanks! :-)
..the fully qualified hostname? I'm getting "box" from both \h and \H,
and \h should give me the FQHN, no? (Does in Red Hat boxes.)
"root@box:/etc # " instead of "root@box.in.local.area.net:/etc # "
--
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.
Reply to: