Csh quickie
Avinash Marathe
avinash at ubvax.UUCP
Wed Feb 12 03:43:38 AEST 1986
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]'
>
> Ken
>--
>UUCP: ..!{allegra,decvax,seismo}!rochester!ken ARPA: ken at rochester.arpa
>Snail: Comp. of Disp. Sci., U. of Roch., NY 14627. Voice: Ken!
You can accomplish this by just saying "pushd" without arguments.
Avinash Marathe
{ihnp4,allegra,decwrl}!amd!ubvax!avinash
More information about the Comp.sources.unix
mailing list