Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

windows 10 open git bash here

Windows Registry Editor Version 5.00
; Open files
; Default Git-Bash Location C:Program FilesGitgit-bash.exe

[HKEY_CLASSES_ROOT*shellOpen Git Bash]
@="Open Git Bash"
"Icon"="C:Program FilesGitgit-bash.exe"

[HKEY_CLASSES_ROOT*shellOpen Git Bashcommand]
@=""C:Program FilesGitgit-bash.exe" "--cd=%1""

; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear

[HKEY_CLASSES_ROOTDirectoryshellash]
@="Open Git Bash"
"Icon"="C:Program FilesGitgit-bash.exe"


[HKEY_CLASSES_ROOTDirectoryshellashcommand]
@=""C:Program FilesGitgit-bash.exe" "--cd=%1""

; This will make it appear when you right click INSIDE a folder
; The "Icon" line can be removed if you don't want the icon to appear

[HKEY_CLASSES_ROOTDirectoryBackgroundshellash]
@="Open Git Bash"
"Icon"="C:Program FilesGitgit-bash.exe"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellashcommand]
@=""C:Program FilesGitgit-bash.exe" "--cd=%v.""
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #windows #open #git #bash
ADD COMMENT
Topic
Name
2+6 =