Csh quickie
Nancy Miller
miller at nlm-mcs.ARPA
Fri Feb 14 07:04:51 AEST 1986
> 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!
The same effect is achieved by typing
pushd
with no arguments!
--
________________________________________________________________________________
__ __
<> <>
|
`-'
Nancy Miller
(miller at nlm-mcs.arpa)
More information about the Comp.sources.unix
mailing list