[100289] in RedHat Linux List
Re: junk before the # prompt
daemon@ATHENA.MIT.EDU (Jeff Ivany)
Thu Nov 19 14:48:29 1998
Date: Thu, 19 Nov 1998 15:47:47 -0400
From: Jeff Ivany <jivany@nbnet.nb.ca>
Reply-To: jivany@nbnet.nb.ca
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
UNIXMAN wrote:
>
> BTW, does anyone know how to get rid of that annoying junk before the
> prompt? all I need to see is the # or $
Hi.
If you're using bash as your shell, set your PS1 variable to whatever
you want and then export it. If you simply want the # or $ and nothing
else, do the following in your ~/.bashrc file:
PS1="\\$ "
export PS1
That will give you the $ or # followed by a space as you prompt. Check
out 'man bash' under prompting for other things you can put in your
prompt.
Hope that helps!
--
Jeff Ivany jivany@nbnet.nb.ca
UNB Electrical Engineering V
http://personal.nbnet.nb.ca/jivany
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.