What i need is command in Git Bash which will open files (txt,html,php..) in Notepad++. Just like when i type notepad test.txt test.txt opens in notepad, i want similar command, let's say npp test.txt which will open test.txt in Notepad++. I'm using Win7(64).
-
2danlimerick.wordpress.com/2011/06/12/… or stackoverflow.com/questions/10564/…MackieeE– MackieeE2014-06-23 15:10:43 +00:00Commented Jun 23, 2014 at 15:10
Add a comment
|
2 Answers
I create a file called npp in my Notepad++ installation directory. npp has the following in it:
#!/bin/sh
"c:/Program Files (x86)/Notepad++/notepad++.exe" -multiInst -notabbar -nosession -noPlugin "$*"
Then add the Notepad++ installation to your PATH.
Now, in git bash you can use a command like: npp foo.txt to start up Notepad++ editing foo.txt.