之前Git Bash自带的右键管理菜单怎么没有了?
不用慌张,只需在注册表里加上就可以,其实就是对着Git Bash的照抄。
这里以安装目录d:\msys64
,默认shell为zsh
为例:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\msys2_shell]
@="MSYS2 Here"
"Icon"="d:\\msys64\\msys2.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\msys2_shell\command]
@="C:\\Windows\\System32\\wscript.exe d:\\msys64\\msys2_open.vbs -shell zsh -use-full-path -here"
[HKEY_CLASSES_ROOT\Directory\shell\msys2_shell]
@="MSYS2 Here"
"Icon"="d:\\msys64\\msys2.ico"
[HKEY_CLASSES_ROOT\Directory\shell\msys2_shell\command]
@="C:\\Windows\\System32\\wscript.exe d:\\msys64\\msys2_open.vbs -shell zsh -use-full-path -where \"%1\""
[HKEY_CLASSES_ROOT\sh_auto_file]
@="Shell Script"
[HKEY_CLASSES_ROOT\.sh]
@="sh_auto_file"
[HKEY_CLASSES_ROOT\sh_auto_file\DefaultIcon]
@="d:\\msys64\\mingw32.exe"
[HKEY_CLASSES_ROOT\sh_auto_file\shell]
[HKEY_CLASSES_ROO