Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site stolaf.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!stolaf!flackc From: flackc@stolaf.UUCP (Chap Flack) Newsgroups: net.sources Subject: Re: Csh quickie Message-ID: <5104@stolaf.UUCP> Date: Wed, 12-Feb-86 10:37:23 EST Article-I.D.: stolaf.5104 Posted: Wed Feb 12 10:37:23 1986 Date-Received: Fri, 14-Feb-86 03:17:14 EST References: <15217@rochester.UUCP> Distribution: net Organization: Carleton College, Northfield, MN Lines: 15 > 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]' So does the following csh built-in command: pushd -- --------------------- Chap Flack ihnp4!stolaf!agnes!flackc Carleton College ihnp4!stolaf!flackc Northfield, MN 55057