Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bbncc5.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!bbnccv!bbncc5!akhanna From: akhanna@bbncc5.UUCP (Atul C Khanna) Newsgroups: net.sources Subject: Re: Csh quickie Message-ID: <1669@bbncc5.UUCP> Date: Wed, 12-Feb-86 10:52:01 EST Article-I.D.: bbncc5.1669 Posted: Wed Feb 12 10:52:01 1986 Date-Received: Fri, 14-Feb-86 03:18:46 EST References: <15217@rochester.UUCP> Reply-To: akhanna@bbncc5.UUCP (Atul C Khanna) Distribution: net Organization: Bolt Beranek and Newman, Cambridge, MA Lines: 13 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]' > Typing "pushd" without any argument does the same thing, at least with our csh. -- Atul C Khanna BBN Communications Corporation, Cambridge MA