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

Re: Bash Prompt in an XTerm



>From: Travis Cole <tcole@iname.com>
>To: debian-user@lists.debian.org
>Subject: Bash Prompt in an XTerm
[snip]
>This works fine when I am at the console as a normal user but as root I only
>get:
>
>atheist#

Check root's .bash_profile (and possibly .bashrc).  It is probably
overriding the default prompt.

>In XFree86 it gives me:
>
>bash-2.00$
>
>I can live with the way root's prompt as I try to use root very little but I
>would like to change the prompt in my XTerms.
>
>What file would I edit to do this?  I tried adding this to my .bash_profile
>and looked through the bash man page.  I would also like to make these changes
>global.

How do you start your xterms?  Through a window manager menu, I would
presume.  You may have to add the '-ls' switch to the xterm command line to
make it a login shell (though I'm sure this affects the .bash_profile file,
I don't know about /etc/profile).

---
Benoit Goudreault-Emond
Reply to: bgoudem@qualiscope.axess.com
My opinions are mine only and may not reflect those of my employer.
E-mail me to obtain my public PGP key.


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: