SteGriff

Blog

Next & Previous

Notepad++ command to open Git Bash in current directory

To set up this command, open Notepad++ and press F5 (or go to Run\Run...)

Paste in the following:

"C:\Program Files\Git\git-bash.exe" --cd=$(CURRENT_DIRECTORY)

Now you can choose to Save the command as ‘Git Bash here’ or similar, and give it a keyboard shortcut if you want. I chose Ctrl+Shift+G.

You can find out more valid args for git-bash on this superuser answer.

If your directory for git-bash.exe is different, you can find the program in the start menu, open its containing folder, and open the shortcut properties to get the correct directory. Maybe yours is in ‘Program Files (x86)’ instead.

I hope it helps!