0

I installed the NppExec plugin for Notepad++ to be able to run Git Bash from inside the application, but it runs the script within the built-in console in Notepad++. This makes the colors disappear, and decreasing readability of the status messages.

How do I make NppExec open a new cmd window with Git Bash, with the same working directory as the file I am currently editing?

1

In the plugin options for NppExec, mark the Follow $(CURRENT_DIRECTORY) menu item to make it run the scripts from your current working directory.

Screenshot NppExec plugin menu

Then, save and execute this script, to make the Git Bash open in a new command line window.

cmd /c start "Git Bash" "C:\Progra~2\Git\bin\sh.exe" --login -i

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.