[comp.unix.wizards] remembered directories

chris@mimsy.UUCP (02/14/87)

In article <1014@valid.UUCP> markp@valid.UUCP (Mark P.) writes:
>I have found it useful to be able to attach symbolic names to certain
>directories during a session ...
>
>	alias m 'set zz\!*=$cwd'

I leave out the `z's,

	alias mark 'set \!:1=$cwd'

so as to use a feature of the C shell:

	mark here
	...
	cd here

One need not even type `$here'.  If a directory does not exist, csh
tries searching its `cdpath', then tries evaluating the name as a
variable!

(I generally use pushd and popd to store directory names; `mark' is
more useful with commands that need to look in two different paths,
and here `$here' is necessary anyway.  Ah well.)
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP:	seismo!mimsy!chris	ARPA/CSNet:	chris@mimsy.umd.edu