cygwin.bat replacement ...

Pabs pabs3@crosswinds.net
Mon Apr 2 19:33:00 GMT 2001


A possible replacement for the current cygwin.bat is attatched (~660 bytes)
You might need to bump up your env settings for cygwin.bat
-in the property sheet choose 'Memory' then change 'Initial Environment'
You will need to change all occurrences of <cygpath> with your cygwin directory
and the second last one should use double backslashes ('\\') instead of single
ones as the folder separator.
It allows you to "Bash Prompt Here" if you set some registry settings:
Key: [HKEY_CLASSES_ROOT\Folder\shell\Bash Prompt Here\command]
Value Name: (Default)
Data Type: REG_SZ
Data: "C:\cygwin\cygwin.bat "%1""
It is a bit slow as a batch file so maybe an exe would be better.
Basically the strategy is:
remember the current directory
figure out where to cd to (%1 or %HOME% (construct if need be))
cd to that directory
bin/bash --login -i
cd back to the curent directory for people who called cygwin.bat from a command.com
(sucky POS) prompt
Hope this is useful to some people
Bye, Pabs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin.bat
Type: text/x-msdos-batch
Size: 671 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010402/f867c1d2/attachment.bin>


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /