From owner-freebsd-questions Tue Jan 25 21:51:29 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.240.222]) by hub.freebsd.org (Postfix) with ESMTP id 8082C14EFE for ; Tue, 25 Jan 2000 21:51:27 -0800 (PST) (envelope-from mph@wopr.caltech.edu) Received: (from mph@localhost) by wopr.caltech.edu (8.9.3/8.9.1) id VAA26638; Tue, 25 Jan 2000 21:51:18 -0800 (PST) (envelope-from mph) Date: Tue, 25 Jan 2000 21:51:18 -0800 From: Matthew Hunt To: Matthew Jonkman Cc: Majid Almassari , "freebsd-questions@FreeBSD.ORG" Subject: Re: Shell prompts Message-ID: <20000125215117.A26523@wopr.caltech.edu> References: <004a01bf67bf$42b16640$030a0a0a@jonkmangarage.com> <007f01bf67bf$5bfec160$1791ddd1@balfourplace.com> <006c01bf67c0$aff34240$030a0a0a@jonkmangarage.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <006c01bf67c0$aff34240$030a0a0a@jonkmangarage.com>; from jonkman@bussert.com on Wed, Jan 26, 2000 at 12:46:20AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 * 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