set work dir aliases (Any shell

aglew at ccvaxa.UUCP aglew at ccvaxa.UUCP
Mon Mar 10 11:53:00 AEST 1986


Another set of working directory aliases. I like to have a lot, with names.
"mark" remembers one; "Mark" saves it. I'm getting enough to make it work
saving them in a separate file that I source in my .cshrc, and to put ifs
around the saved line to distinguish different machines. Plus something
that says "you've already defined this place, stupid!". But for the short
term, these are enough.


alias mark 'set \!:1=`pwd`; alias \!:1 cd $\!:1'
alias Mark mark \!:1 \; echo '>> ~/.cshrc' set \!:1 = `pwd` \\\; alias \!:1 cd '$'\!:1



More information about the Comp.sources.unix mailing list