[4353] in Athena Bugs

home help back first fref pref prev next nref lref last post

long pathnames

daemon@ATHENA.MIT.EDU (marc@MIT.EDU)
Wed Feb 28 18:02:38 1990

From: marc@MIT.EDU
To: dryfoo@MIT.EDU
Cc: bugs@MIT.EDU
Reply-To: marc@MIT.EDU
Date: Wed, 28 Feb 90 18:02:18 EST
I have a solution to your problem.  It dos the right thing most of the
time in csh and emacs.

1) add the following lines to the beginning of your .cshrc file:

	cd
	set cwd=`pwd`
	set home=$cwd
	set cdpath=$cwd

2) add the following lines to your .cshrc.mine, or wherever you put
aliases:

	alias cd 'chdir \!*; chdir .'

Or, if you use back (like I do):

	alias cd 'set old=$cwd; chdir \!*; chdir .'
	alias back 'set back=$old; set old=$cwd; cd $back; unset back; dirs'

Now, the right thing (a somewhat better thing?) will happen.  Also, be
sure to use %m, not %M in your prompt.

		Marc

home help back first fref pref prev next nref lref last post