set work dir aliases (Any shell with aliases)
Steve Tell
sgt at alice.UucP
Wed Feb 26 15:42:23 AEST 1986
Here's a similar scheme that several people have been using on both
csh and ksh:
csh:
alias d1 'set D1=`pwd`'
alias cd1 'cd $D1'
ksh:
alias -x d1="D1=\$PWD"
alias -x cd1="cd \$D1"
Typicaly, one has, say, d1 through d6. I usually only use
two or three of them, and set them up so the numbers relate
to which is "primary" to the task at hand in some way.
Another usefull alias is one that prints the contents of $D1-$D6.
More information about the Comp.sources.unix
mailing list