set work dir aliases (Any shell with aliases)

Steve Herring stevenh at tekig4.UUCP
Sat Mar 1 07:27:05 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'

Replacing `pwd` with $cwd will make d1 execute much faster.
As in:

alias	d1	'set D1=$cwd'

Steve Herring
...!tektronix!tekig4!stevenh



More information about the Comp.sources.unix mailing list