Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/15/85; site ubvax.UUCP Path: utzoo!linus!decvax!decwrl!amdcad!cae780!ubvax!avinash From: avinash@ubvax.UUCP (Avinash Marathe) Newsgroups: net.sources Subject: Re: Csh quickie Message-ID: <437@ubvax.UUCP> Date: Tue, 11-Feb-86 12:43:38 EST Article-I.D.: ubvax.437 Posted: Tue Feb 11 12:43:38 1986 Date-Received: Thu, 13-Feb-86 20:16:09 EST References: <15217@rochester.UUCP> Reply-To: avinash@ubvax.UUCP (Avinash Marathe) Distribution: net Organization: Ungermann-Bass, Inc., Santa Clara, Ca. Lines: 17 In article <15217@rochester.UUCP> ken@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@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