Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jul 1996 23:43:08 -0700 (PDT)
From:      Gifka Sovereign <gif@loop.com>
To:        Ryan Cutter <rcutter@ctgusa.com>
Cc:        questions@freebsd.org
Subject:   Re: Changing prompt
Message-ID:  <Pine.BSI.3.94.960705233358.588A-100000@loop.com>
In-Reply-To: <1.5.4.32.19960705154424.008cda38@ctgusa.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 5 Jul 1996, Ryan Cutter wrote:
>         How can I change my prompt in FreeBSD to reflect the current
> directory I'm in?

  Seeing that someone has already shown you how to do it in CSH, I'll give
you the BASH answer:

In $HOME/.profile type:

PS1='$PWD '

  You can do a:

PS1='$PWD> ' 

  To append a ">" after the pwd (return working directory name). 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.960705233358.588A-100000>