This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: using aliases for cygwin commands on win2k
- To: anoop at alumni dot duke dot edu
- Subject: Re: using aliases for cygwin commands on win2k
- From: Michael Hoffman <grouse at mail dot utexas dot edu>
- Date: Mon, 17 Sep 2001 18:05:56 -0500 (CDT)
- cc: cygwin at cygwin dot com
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/