Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!whuxl!whuxlm!akgua!gatech!seismo!mcvax!ukc!cstvax!hwcs!aimmi!gilbert From: gilbert@aimmi.UUCP Newsgroups: net.sources Subject: Re: Csh quickie Message-ID: <723@aimmi.UUCP> Date: Fri, 14-Feb-86 08:23:53 EST Article-I.D.: aimmi.723 Posted: Fri Feb 14 08:23:53 1986 Date-Received: Mon, 17-Feb-86 05:36:49 EST References: <15217@rochester.UUCP> Reply-To: gilbert@aimmi.UUCP (Gilbert Cockton) Distribution: net Organization: Heriot-Watt/Strathclyde Alvey MMI Unit, Scotland Lines: 11 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]' Doesn't pushd on its own do this? -- Gilbert Cockton, Alvey MMI Unit, Scotland USENET: ..(EUROPE)mcvax!ukc!cstvax!hwcs!aimmi!gilbert. JANET:gilbert@uk.ac.hw.cs(aimmi not NRS registered yet). ARPA:gilbert%cs.hw.ac.uk@cs.ucl.ac.uk (ditto)