Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 1999 13:26:03 -0500
From:      Chris Johnson <cjohnson@palomine.net>
To:        pete collins <pcollins@ocsny.com>
Cc:        questions@FreeBSD.ORG
Subject:   Re: setting bash prompt
Message-ID:  <19990120132603.A11506@palomine.net>
In-Reply-To: <36A60EFA.641F2136@ocsny.com>; from pete collins on Wed, Jan 20, 1999 at 12:14:34PM -0500
References:  <Pine.BSF.3.96.990120135600.28221A-100000@gate1.ilhadamagia.com.br> <36A60EFA.641F2136@ocsny.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jan 20, 1999 at 12:14:34PM -0500, pete collins wrote:
> i added my dot profile file as below and it works great!
> date and everything which i discovered purely by accident!
> 
> PS1="\u@\h \d $ "
> SHELL=/usr/local/bin/bash export SHELL
> 
> however where are these commands from \u and \h
> i know what they mean but not why or where??
> 
> how do i add (pwd) to the prompt also so i know which directory i'm currently at?

Check the bash man page. Look in the PROMPTING section.

Chris

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?19990120132603.A11506>