[comp.unix.questions] My Favorite Alias

mjranum@gouldsd.UUCP (Marcus J Ranum) (03/20/87)

	I was thinking we might be able to start some kind of discussion
of usful C-shell aliases, etc. Anyhow, if not, quick, Jeeves, my asbestos
undershorts !

alias @ 'alias \!:1 cd `pwd`'

	What this lets you do is make a 'mark' in a directory and then
return to it instantly. If you are in /tmp and type "@ tmp" it will
expand to alias "tmp" to "cd /tmp". I like this better than pushdir
and popdir because I frequently wind up all over the place, and 
depending on my interests of the moment it is easy to set up a series
of aliases in my current login shell. 

--mjr;
-- 
"It is better to shred the bugger than to bugger the shredder."
					-ancient doltic proverb.

STANLEY%syr-nmr-aos1.csnet@RELAY.CS.NET (03/25/87)

re: alias @ ...

I much prefer the alias modified to show me my wd after moving, as in:

   alias @ 'alias \!:1 \( cd `pwd`\; pwd \)'

At least I will know where I will be mangling files before I do it.
As for favorite aliases, I approve. I will steal, I mean borrow, good
ideas from anywhere.

-- snappy saying space for rent --