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]
Other format: [Raw text]

Re: Bash shell extension ?


In case you need to know, this is what my registry currently looks like this:
[HKEY_CLASSES_ROOT\Directory\shell\Bash]
@="Bash Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Bash\command]
@="bash.exe -c 'cd \"%1\"; exec /bin/bash.exe'"

Using this it works fine, with the exception of grossly truncating the long
folder names .. If this could be fixed, I would be very happy .. :)
-Adam

P.S. The changes that I made as per your suggestion, I did through the registry
directly (not via a .reg file) .. If this possible caused some problems, let me
know .. Perhaps you could copy & paste the exact key that is in your registry
to the mailing list?


*********** REPLY SEPARATOR  ***********

On 4/12/2002 at 6:36 AM Adam wrote:

>Ok, I have made the changes you suggested, but there are some problems:
>The single-quotes for the cd command seem to have messed things up .. 
>bash.exe: cd: F:ClassesWINTER~2ECE344: No such file or directory
>[06:27:31] /f/Classes/Winter_2002 $
>
>What is good about this method is that before I was only getting
>"/f/Classes/WINTER~2/ECE344" ..This way I see the whole path, but
>something is
>messing up .. Any suggestions how to fix?
>
>Last, I have added the same key under Drive, but its not working at all.
>All
>that I see happen is the Bash window pop up for a small fraction of a
>second,
>then disappears. Something pops up on the screen, but it closes so quickly
>that
>I don't know what .. I can troubleshoot this more if someone can tell me
>where
>to look .. 
>
>-Adam
>
>
>*********** REPLY SEPARATOR  ***********
>
>On 4/12/2002 at 4:09 AM Sam Edge wrote:
>
>>> [HKEY_CLASSES_ROOT\Folder\shell\Bash Prompt]
>>> [HKEY_CLASSES_ROOT\Folder\shell\Bash Prompt\command]
>>> @="bash.exe -c 'cd \"%1\"; exec bash'"
>>> It seems you might also have to mount the drives you want to use.
>>
>>Use single quotes for the cd command so that if the Windows shell
>>substitutes something ending in backslash for %1 it doesn't escape the
>>close
>>quote.
>>
>>Use the Directory key instead of the Folder one. (The difference being
>that
>>Folder includes fictions of the Windows shell namespace that don't
>>correspond to real directories.)
>>
>>To allow invocation of a prompt via the context menu of a drive icon apply
>>the command to the Drive key as well as the Directory one.
>>
>>Finally, by including a default value for the command, you can add an
>>underline shortcut to the context menu.
>>
>>(Most of this is really nothing to do with cygwin - it's all standard
>>Windows stuff.)
>>
>>REGEDIT4
>>
>>[HKEY_CLASSES_ROOT\Directory\shell\BashHere]
>>@="&Bash Prompt Here"
>>[HKEY_CLASSES_ROOT\Directory\shell\BashHere\command]
>>@="c:\\cygwin\\bin\\bash.exe -c \"cd '%1' ; exec /bin/bash\""
>>[HKEY_CLASSES_ROOT\Drive\shell\BashHere]
>>@="&Bash Prompt Here"
>>[HKEY_CLASSES_ROOT\Drive\shell\BashHere\command]
>>@="c:\\cygwin\\bin\\bash.exe -c \"cd '%1' ; exec /bin/bash\""
>>
>>
>>--
>>Sam Edge
>>
>>
>>
>>--
>>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/
>
>
>
>--
>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/



--
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]