Date: Mon, 17 Feb 2003 17:07:15 +0100 From: Thomas Spreng <spreng@socket.ch> To: questions@freebsd.org Subject: Re: shell prompt question Message-ID: <20030217160715.GA15268@rock.stable.ch> In-Reply-To: <20030217104624.D28552@skytrackercanada.com> References: <20030216152524.A14300@skytrackercanada.com> <20030216214931.GB2106@gothmog.gr> <20030217104624.D28552@skytrackercanada.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, On Mon, Feb 17, 2003 at 10:46:24AM -0500, David Banning wrote: > > The way that the shell prompt is set depends on the particular shell. > > What shell does your `david' user have? What shell does `root' have? > > they both use bash. > > > > > > How do I get the super-user prompt when I just use the "su" command > > > rather than the full "su -" command? > > > > The default behavior of su is to run an interactive, but not login, > > shell AFAIK. How to set the prompt for interactive invocations of > > your root user's shell depends on the shell. /root/.bashrc f.e. is parsed if you start an interactive shell, like 'su'. Define your PS1 variable in this file if you want to customize it and read the bash manpage, its written there. cheers, tom 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?20030217160715.GA15268>