Re: [SLUG] bash prompt - setting it to current user (Gentoo)

From: Eric Jahn (eric@ejahn.net)
Date: Sun Jun 22 2003 - 17:48:27 EDT


or better yet adding: test -r /etc/profile && . /etc/profile

On Sun, 2003-06-22 at 17:18, Eric Jahn wrote:
> thanks, this set me on the path to figuring it out. I was writing this
> long email response walking through the steps of what sourced what and I
> just needed to add PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$
> \[\033[00m\]' to my bashrc file. thanks!
>
> On Sun, 2003-06-22 at 16:29, Brian Coyle wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Sunday 22 June 2003 14:35, Eric Jahn wrote:
> >
> > > I know how to configure a bash prompt,
> > > but what I don't understand is how to make a new console display a
> > > prompt for the current user (not the generic "bash-2.05b$" one) without
> > > having to subsequently log in to the current user with a password.
> >
> > Look at the differences between $HOME/.bashrc, $HOME/.bash_profile,
> > $HOME/.bash_login, and $HOME/.profile etc. (especially when and under what
> > circumstances each is sourced in).
> >
> > $ man bash
> >
> > scroll to the INVOCATION section
> >
> > Set your PS1 prompt variable in the appropriate file(s).
> >
> > HTH!
> >
> >
> > - --
> > "We choose to go to the moon, and do the other things...
> > Not because they are easy, but because they are hard." -JFK
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.1 (GNU/Linux)
> > Comment: Brian Coyle, GCIA http://www.giac.org/GCIA.php
> >
> > iD8DBQE+9hG0ER3MuHUncBsRAicmAJ47ttph8yUkiz6+UzKiC/fv0LHOiQCfbsAM
> > KTAQUvASpI5jPA1h2uWg3TQ=
> > =c/0B
> > -----END PGP SIGNATURE-----



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:19:30 EDT