Skip to content

Add 'Git bash here' to context menu *in* a folder #84

Closed
hickford opened this Issue Dec 14, 2012 · 6 comments

4 participants

@hickford

Git for Windows adds a 'git bash here' item to the Windows Explorer context menu, when opened on a folder.

It would be really helpful to add the 'git bash here' item for context menus opened in a folder. I for one use this context menu much more often.

Example screenshot of the context menu where the item is missing http://i.imgur.com/UV9b7.png

@hickford hickford referenced this issue in rpavlik/git-windows-mintty Dec 14, 2012
Open

List 'Git bash here' in context menu in a folder #1

@hickford

Basically, install.iss installs a shell extension to (typically) HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell . Would need to install a similar shell extension to HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\Background\shell. I say, similar, because would need to change the corresponding command subtly (replace %1 with %V).

@hvoigt
MSysGit - the development behind Git for Windows member
hvoigt commented Dec 17, 2012

Please feel free to change what you feel is more correct and submit a pull request or send a patch to the list.

@snaewe
snaewe commented Dec 19, 2012

This doesn't work on XP, does it ?

@hickford

Surely this works on exactly the same platforms as before since I've just added an extra item using the same old method. I don't know whether this includes Windows XP.

@sschuberth
MSysGit - the development behind Git for Windows member

According to this comment on SO, doing it this way only works on Windows Vista and above (which is OK for me, this is just FYI).

@sschuberth sschuberth added a commit that referenced this issue Jan 17, 2013
@sschuberth sschuberth Installer: Add registry-based context menus also to directory backgro…
…unds

Do this for both "Git Bash Here" and "Git GUI Here" entries. Simplify the
code along the lines. Fixes issue #84.

Helped-by: Matt Hickford <matt.hickford@gmail.com>
Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
90a44f4
@sschuberth
MSysGit - the development behind Git for Windows member

Doh, it seems the "Fixes issue #84" needs to go to the commit message's subject (not the body) to make GitHub close the issue automatically.

@sschuberth sschuberth closed this Jan 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.