Omer Zak <[EMAIL PROTECTED]> writes:

> In a stock RedHat 7.3 installation, I am trying to customize the prompt.
> I edited ~/.bash_profile so that it'll have also the command:
> PS1='[\!][\u@\h:\w]\$ '
> 
> Inside an xterm, if I source .bash_profile, then the prompt changes to
> what I want it to be.
> However if I log out and log back into Gnome, and open a new xterm window,
> then it displays the original prompt.  This happens both with and without
> 'export PS1' in .bash_profile.
> 
> Other environment variables, which were set in .bash_profile (such as
> PATH), have the expected values, so .bash_profile actually got
> executed.

I would be very surprized if ~/.bash_profile got executed for every
xterm. It should not be: ~/.bash_profile is only sourced for login
shells, cf. "man bash". From your description, I think your system
behaves properly and according to documentation.

I export PS1 and PS2 from ~/.bashrc, which works just fine.


-- 
Oleg Goldshmidt | [EMAIL PROTECTED]

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to