[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash shell prompt

> My guess was that the .bashrc in my home directory needed the 
> same PS1 environment as the .bashrc in the root directory so I 
> added 
> export PS1='\h:\w\$ '
> but this does not solve the problem UNLESS I login as myself and 
> then type 
> bash
> at which point the prompt changes.
> So I seem to have the right environment variable but do I need to 
> put it in a different file or what?

You need to put it in .bash_profile

(RTFM for explaination - it's too complex to condense here, but basically,
it looks for .bash_profile first)



Elen sila lumenn' omentielvo

Steward of the Cambridge Tolkien Society
Selwyn College Computer Support

Reply to: