Csh quickie

Sean Casey sean at ukma.UUCP
Sat Feb 15 02:16:55 AEST 1986


In article <437 at ubvax.UUCP> avinash at ubvax.UUCP (Avinash Marathe) writes:
>In article <15217 at rochester.UUCP> ken at rochester.UUCP (Ipse dixit) writes:
>>
>>This alias swaps the top two directories on the stack - useful for
>>directory hoppers like me:
>>
>>alias / 'set dirstack=`dirs -l`; popd; cd $dirstack[1]; pushd $dirstack[2]'
>
>You can accomplish this by just saying "pushd" without arguments.

A nice alias I use is:

alias	rot	pushd +1

The effect is to rotate all your pushdir'd directories one position
to the left.  I use this alias a lot.

Sean



More information about the Comp.sources.unix mailing list