Getting csh prompt to display the current dir.

Tom Rojahn tom at dr.uucp
Thu Apr 6 17:03:34 AEST 1989


	Here is one simple way to let csh prompt your current
	directory:

	Enter following commands in /etc/cshrc or $HOME/.cshrc:

	set prompt="`pwd`% "
	alias cd 'chdir \!*; set prompt="`pwd`% "'


	Tom Rojahn
 +--------------------------------------------------------------+
 ! DataRojahn-> Tel: +479945178 Mobil: 03006606 Fax: +479945592 !
 ! uucp: dr!tom Tel: +479945180 login: public Password: Public  !
 ! USENET/EUnet:  ...!mcvax!ndosl!dr!tom   or: tom at dr.uucp      !
 +--------------------------------------------------------------+



More information about the Comp.unix.questions mailing list