This is the mail archive of the cygwin@cygwin.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]

Re: using aliases for cygwin commands on win2k


On Mon, 17 Sep 2001, Anoop Ghanwani wrote:

> --- Robert Collins <robert.collins@itdomain.com.au> wrote:
...
> > Run bash/tcsh/ksh. Do not run cmd.exe.
...
> If I do that, I lose the ability to start applications
> automatically by simply typing the file name.  For example, 
> if I have a file try.doc, and I type try.doc at the Windows 
> 2000 command prompt, it brings up Word with that document.

Put the following two lines into /usr/local/bin/start:
#!/bin/sh
cmd /c start `cygpath -w $*`

Then, chmod a+x /usr/local/bin/start

Now you can do this:

$ start try.doc

Or my personal favorite:

$ start . [opens the current directory in an explorer window]

Voila.
--
Michael Hoffman <grouse@mail.utexas.edu>
The University of Texas at Austin




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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