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]

cygwin.bat replacement ...


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

cygwin.bat

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

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