How to add a “open git-bash here…” context menu to the windows explorer?

前端 未结 12 1699
谎友^
谎友^ 2020-11-29 16:15

How to add a context (aka right click) menu to the windows explorer that, when clicked, opens the git-bash console in the current explorer folder?

12条回答
  •  萌比男神i
    2020-11-29 16:56

    I had a similar issue and I did this.

    Step 1 : Type "regedit" in start menu

    Step 2 : Run the registry editor

    Step 3 : Navigate to HKEY_CURRENT_USER\SOFTWARE\Classes\Directory\Background\shell

    Step 4 : Right-click on "shell" and choose New > Key. name the Key "Bash"

    Step 5 : Modify the value and set it to "open in Bash" This is the text that appears in the right click.

    Step 6 : Create a new key under Bash and name it "command". Set the value of this key to your git-bash.exe path.

    Close the registry editor.

    You should now be able to see the option in right click menu in explorer

    PS Git Bash by default picks up the current directory.

    EDIT : If you want a one click approach, check Ozesh's solution below

提交回复
热议问题