Upgrading to FreeBSD 3.2 etc

Dominic Mitchell dom at myrddin.demon.co.uk
Wed Sep 1 22:58:39 BST 1999


On Mon, Aug 30, 1999 at 10:43:40PM +0100, Mark Ovens wrote:
> On Mon, Aug 30, 1999 at 05:28:12PM +0100, Charles Brewster wrote:
> > I can't seem to figure out any straightforward or intuitive way to get a
> > $p$g type prompt in the default "csh" shell, and a new "bash" (2.03) fresh
> 
> alias cd 'cd \!*;set prompt="`hostname`:`pwd`{!}% "'

Please don't encourage people onto csh...

In bash, you can do:

PS1='\w\$ '

Which will give you the current working directory.  Look in the bash man
page for PS1 which will give you a list of all the things you can do.

Your best bet is to install zsh, however.  :-)





More information about the Ukfreebsd mailing list