dzsessona / QuickOpener-NetBeans

Sometimes while programming in NetBeans you want to explore a particular file that you are editing on the file system browser, or maybe launch a command in a terminal to do something with it.
52 stars 41 forks source link

How to open git bash in windows? #42

Closed aa755 closed 10 years ago

aa755 commented 10 years ago

I'm using mysysgit in windows and wish to open git bash instead of default shell. However, i can't figure out the custom command for it. I tried the suggestions in http://stackoverflow.com/questions/17302977/how-to-launch-git-bash-from-dos-command-line, but they didn't seem to work. Thanks

dzsessona commented 10 years ago

what is the command to that on windows shell?

aa755 commented 10 years ago

start "" "%SYSTEMDRIVE%\Program Files (x86)\Git\bin\sh.exe" --login seems to work. I tried replacing %SYSTEMDRIVE% with C:\ in the custom command field of the plugin. But it didn't work

dzsessona commented 10 years ago

ok.... i suppose there is an escaping issue. The problem is that i have no windows machine to test it, but i can try it in dev mode to see what do you need to escape to get that result. So is it ok for you if i write you here the string that should be set in the plugin and you try it?

dzsessona commented 10 years ago

also as a quick test, did you try to escape all double quotes and slashes? something like:

start \"\" \"%SYSTEMDRIVE%\Program Files (x86)\Git\bin\sh.exe\" --login

? let me know...

aa755 commented 10 years ago

I tried that and start \"\" \"%SYSTEMDRIVE%\Program Files (x86)\Git\bin\sh.exe\" --login and start \"\" \"C:\Program Files (x86)\Git\bin\sh.exe\" --login

None of them worked

I'll be happy to try more commands. Let me know

On Wed, Nov 6, 2013 at 6:16 PM, Diego Zambelli Sessona < notifications@github.com> wrote:

also as a quick test, did you try to escape all double quotes and slashes? something like:

start \"\" \"%SYSTEMDRIVE%\Program Files (x86)\Git\bin\sh.exe\" --login

? let me know...

— Reply to this email directly or view it on GitHubhttps://github.com/kinkadzs/QuickOpener-NetBeans/issues/42#issuecomment-27923838 .

markiewb commented 10 years ago

@aa755 : Please use the newest version at PPUC. Use the pattern D:\tools\Git\bin\sh.exe --login -i as custom shell command

markiewb commented 10 years ago

Closing, was fixed by https://github.com/dzsessona/QuickOpener-NetBeans/issues/45