delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/13/15:49:23

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Lotus-FromDomain: JPMORGAN AT SMTP
From: "Noel L Yap" <yap_noel AT jpmorgan DOT com>
To: dude_man98 AT yahoo DOT com
cc: Cygwin AT sources DOT redhat DOT com
Message-ID: <85256977.006C8DE0.00@nyc-ntgw-n01.ny.jpmorgan.com>
Date: Fri, 13 Oct 2000 15:45:43 -0400
Subject: Re: Back Command :)
Mime-Version: 1.0

Why not just use "cd -"?

Noel




dude_man98 AT yahoo DOT com on 2000.10.13 15:39:22

To:   cygwin AT sources DOT redhat DOT com
cc:   (bcc: Noel L Yap)
Subject:  Back Command :)




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


__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com






This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019