On Tue, 3 Dec 2002, Omer Zak wrote: > > On 1 Dec 2002, Oleg Goldshmidt wrote: > > > 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. > > I moved the assignment to PS1 from .bash_profile to .bashrc, and now it > works great.Thanks! > > My surprise is that assignments to PS1 made in .bash_profile were not > inherited by the shells in xterms. > > Thanks also to the others, who made the effort to contribute advice.
A different file may be: /etc/sysconfig/bash-prompt-xterm Take a look at /etc/bashrc Has a scriptlet that gives different prompt to xterm, screen and "others", to allow hostame@username in the title of the terminal in the former two. -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir ================================================================= 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]