This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]