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

Re: different prompt in text and xterm



On Mon, Oct 21, 2002 at 04:14:07PM +0530, Sandip P Deshmukh wrote:
> my .bashrc file reads as follows:
[...]
> now, when i get a login prompt, it is deshmukh.work login:
> 
> when i log in, either as a root or as a user, the promt changes to 
> sandip@deshmukh:~$
> 
> when i open an x-term in windowmaker, the prompt is sandip@deshmukh.work:~$

Ordinary logins are login shells; xterms are non-login shells by
default. See the INVOCATION section of the bash(1) man page for details.

I usually put '. ~/.bashrc' in ~/.bash_profile, but this depends on the
complexity of your shell startup files.

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: