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

From: Brian Coyle (brian@linuxwidows.com)
Date: Sun Jun 22 2003 - 16:29:30 EDT


-----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:18:40 EDT