Invoking notepad++ from Git Bash

后端 未结 14 2324
隐瞒了意图╮
隐瞒了意图╮ 2021-01-31 16:01

I am using msysgit in Windows 7. How do I invoke notepad++ from Git Bash, like we do it with our default notepad?

Like for example

name@usename notepad textfile.t

14条回答
  •  囚心锁ツ
    2021-01-31 16:22

    I believe git-bash is an actual bash shell, so when it starts, it runs a .bashrc file from somewhere (most likely your home directory or the directory git-bash starts in). Look for that file, and when you find is, add an alias line somewhere for notepad++:

    alias notepad="/c/Program\ Files/Notepad++/notepad++.exe"

    Of course use your actual path to Notepad++ there.

提交回复
热议问题