From owner-freebsd-questions Wed Apr 15 12:56:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24202 for freebsd-questions-outgoing; Wed, 15 Apr 1998 12:56:57 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from dt050n33.san.rr.com (@dt050n33.san.rr.com [204.210.31.51]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA24077 for ; Wed, 15 Apr 1998 19:56:22 GMT (envelope-from Studded@san.rr.com) Received: from san.rr.com (Studded@localhost [127.0.0.1]) by dt050n33.san.rr.com (8.8.8/8.8.8) with ESMTP id MAA04403; Wed, 15 Apr 1998 12:56:12 -0700 (PDT) (envelope-from Studded@san.rr.com) Message-ID: <353510DC.783753E6@san.rr.com> Date: Wed, 15 Apr 1998 12:56:12 -0700 From: Studded Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.6-STABLE i386) MIME-Version: 1.0 To: Tim Gustafson CC: freebsd-questions@FreeBSD.ORG Subject: Re: Root Prompt References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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