Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 1998 12:56:12 -0700
From:      Studded <Studded@san.rr.com>
To:        Tim Gustafson <guff@falconsoft.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Root Prompt
Message-ID:  <353510DC.783753E6@san.rr.com>
References:  <Pine.BSF.3.96.980415094449.11978B-100000@falconsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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. 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]\$ '

Good luck,

Doug

-- 
***         Chief Operations Officer, DALnet IRC network       ***
*** Proud designer and maintainer of the world's largest Internet
***    Relay Chat server with 5,328 simultaneous connections.
*** Try spider.dal.net on ports 6662-4    (Powered by FreeBSD)

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?353510DC.783753E6>