Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Apr 1998 10:09:45 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Studded <Studded@san.rr.com>, Tim Gustafson <guff@falconsoft.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Root Prompt
Message-ID:  <19980416100945.U1090@freebie.lemis.com>
In-Reply-To: <353510DC.783753E6@san.rr.com>; from Studded on Wed, Apr 15, 1998 at 12:56:12PM -0700
References:  <Pine.BSF.3.96.980415094449.11978B-100000@falconsoft.com> <353510DC.783753E6@san.rr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 April 1998 at 12:56:12 -0700, Studded wrote:
> Tim Gustafson wrote:
>>
>> I'd like to change my root prompt, but even when I put the following in
>> my /root/.profile, I still get a bash# instead of user@host:
>
> 	You're working way too hard. :)  First off, .profile is for the Bourne
> shell (/bin/sh),  you want /root/.bash_profile. 

bash reads .profile too.

> Also, bash comes with some very handy built in prompt
> strings. Assuming you're using bash 2.01.01 (and you should be, it's
> in the ports) you can put the following in your .bash_profile to get
> what you want:
>
> export PS1='[\u@\h \w]\$ '

I think he got that far.  The original message contained a choice of
the PS1 strings he wanted.

Tim, I'm guessing that you become root via su.  In this case, it
doesn't read .profile and .bash_profile.  Put the commands in .bashrc.

Greg
--
See complete headers for address and phone numbers
finger grog@lemis.com for PGP public key

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980416100945.U1090>