Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukma.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!sean From: sean@ukma.UUCP (Sean Casey) Newsgroups: net.sources Subject: Re: Csh quickie Message-ID: <2696@ukma.UUCP> Date: Fri, 14-Feb-86 11:16:55 EST Article-I.D.: ukma.2696 Posted: Fri Feb 14 11:16:55 1986 Date-Received: Sat, 15-Feb-86 06:23:10 EST References: <15217@rochester.UUCP> <437@ubvax.UUCP> Reply-To: sean@ukma.UUCP (Sean Casey) Distribution: net Organization: The White Tower @ The Univ. of KY Lines: 18 In article <437@ubvax.UUCP> avinash@ubvax.UUCP (Avinash Marathe) writes: >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]' > >You can accomplish this by just saying "pushd" without arguments. A nice alias I use is: alias rot pushd +1 The effect is to rotate all your pushdir'd directories one position to the left. I use this alias a lot. Sean