From owner-freebsd-questions Sun Feb 16 13: 4:44 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00F7137B401 for ; Sun, 16 Feb 2003 13:04:43 -0800 (PST) Received: from tina.la3sg.net (217-13-29-172.dd.nextgentel.com [217.13.29.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCADB43FBD for ; Sun, 16 Feb 2003 13:04:41 -0800 (PST) (envelope-from tina@tina.la3sg.net) Received: from tina.la3sg.net (tina@localhost.la3sg.net [127.0.0.1]) by tina.la3sg.net (8.12.6/8.12.6) with ESMTP id h1GL4P0n000812; Sun, 16 Feb 2003 22:04:25 +0100 (CET) (envelope-from tina@tina.la3sg.net) Received: (from tina@localhost) by tina.la3sg.net (8.12.6/8.12.6/Submit) id h1GL4OZE000811; Sun, 16 Feb 2003 22:04:24 +0100 (CET) Date: Sun, 16 Feb 2003 22:04:24 +0100 From: Kjell Midtseter To: David Banning Subject: Re: shell prompt question Message-ID: <20030216210424.GC174@tina.la3sg.net> Reply-To: junkmail@sensewave.com References: <20030216152524.A14300@skytrackercanada.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030216152524.A14300@skytrackercanada.com> User-Agent: Mutt/1.4i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday, 16 February 2003 at 15:25:24 -0500, David Banning wrote: > My normal prompt is; > > david $ > > and my superuser prompt is; > > # > > How do I get the super-user prompt when I just use the "su" command > rather than the full "su -" command? > > I want to stay in the same directory I am in sometimes but have su > authority. The problem is that my prompt doesn't change, so I forget > that I am su. > When you do a su the contents of your ~/.bash_profile should be read. While the contents of ~/.bashrc is ignored. Do you have a ~/.bash_profile ? Kjell > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message