Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!pyramid!ut-sally!seismo!brl-smoke!nlm-mcs!miller From: miller@nlm-mcs.ARPA (Nancy Miller) Newsgroups: net.sources Subject: Re: Csh quickie Message-ID: <858@nlm-mcs.ARPA> Date: Thu, 13-Feb-86 16:04:51 EST Article-I.D.: nlm-mcs.858 Posted: Thu Feb 13 16:04:51 1986 Date-Received: Sun, 16-Feb-86 04:55:19 EST References: <15217@rochester.UUCP> Distribution: net Organization: NLM/LHNCBC, Bethesda, Md. Lines: 22 > 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@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@nlm-mcs.arpa)