Date: Tue, 25 Jan 2000 21:51:18 -0800 From: Matthew Hunt <mph@astro.caltech.edu> To: Matthew Jonkman <jonkman@bussert.com> Cc: Majid Almassari <majid@ibroadcast.net>, "freebsd-questions@FreeBSD.ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: Shell prompts Message-ID: <20000125215117.A26523@wopr.caltech.edu> In-Reply-To: <006c01bf67c0$aff34240$030a0a0a@jonkmangarage.com>; from jonkman@bussert.com on Wed, Jan 26, 2000 at 12:46:20AM -0500 References: <004a01bf67bf$42b16640$030a0a0a@jonkmangarage.com> <007f01bf67bf$5bfec160$1791ddd1@balfourplace.com> <006c01bf67c0$aff34240$030a0a0a@jonkmangarage.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 26, 2000 at 12:46:20AM -0500, Matthew Jonkman wrote: > That tells me all I'd want to know, but how can I make the prompt itself be > something to the effect of: > > Username in /etc/mail # This depends on your shell. If you are using bash, for example, you can use: export PS1="\\u in \\w \\$ " The \$ displays a "#" for root, and "$" for other users. This is a conventional way of reminding you whether you have supreme power or not. -- Matthew Hunt <mph@astro.caltech.edu> * Inertia is a property http://www.pobox.com/~mph/ * of matter. 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?20000125215117.A26523>