Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20001013154318.0232dc30@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Fri, 13 Oct 2000 15:44:28 -0400 To: Jeremy Greiner , Cygwin Group From: "Larry Hall (RFK Partners, Inc)" Subject: Re: Back Command :) In-Reply-To: <20001013193922.75475.qmail@web9501.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 03:39 PM 10/13/2000, Jeremy Greiner wrote: >this may come in handy for those of us command >line fanatics. It allows for a quick back button >if you will, like if your in a dir /usr/local/bin >and you cd'd to /home/user/dev/stuff and you >wanted to got back, after a while it can get >tedious to move back and forth (yes I know that is >what the up and down arrows are for) but this is >another way of doing it. > >to add the back command (bash only at this moment) >add the following lines to your .bashrc file >or your /etc/profile > >-- begin code -- >alias cd='export BWD=$PWD; cd' >alias back='export CCOM="cd $BWD"; export TDIR=$PWD; >`echo $CCOM`; export BWD=$TDIR' >-- end code -- > >-jeremy Or use pushd/popd. Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com