[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Location of shell prompt definitions
- Subject: Re: [cobalt-users] Location of shell prompt definitions
- From: "Brian Curtis" <admin@xxxxxxxxxxx>
- Date: Fri Jul 28 09:20:06 2000
- Organization: Pomfret Computer Technologies
----- Original Message -----
From: "Jeff Martin" <jeff@xxxxxxxxxxxxxxxx>
> What file contains the command that defines how the command line prompt
looks?
> I'm using the default bash shell defined by Cobalt.
> Looked in /etc/bashrc and /etc/profile, but I don't see it.
>
> -Jeff
For a user by user prompt modificaton, it would be ~/.bashrc. For a global
mod, it'd be /etc/bashrc, assuming that each user's ~/.bashrc doesn't
already contain a PS1 or PS2 var.
I believe that if the same two vars (with different parameters for ex.)
exist in both /etc/bashrc and ~/.bashrc, the var within ~.bashrc will take
precedence.
Example on one of our servers:
/etc/bashrc:
PS1="[\u@\h \W]\\$ "
~/.bashrc:
PS1="{\t}[\u@\h]\$ "
I always get the prompt definition as outline in my ~/.bashrc (which is what
I want obviously).
HTH (and I hope I'm correct here; not all too familiar with the RAQ and Cube
file systems yet.)
--
BC