将以下代码存为.reg文件,双击运行即可
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCygwinHere]
"ShowBasedOnVelocityId"=dword:00639bc8
@="在此处打开Cygwin"
"Icon"="C:\cygwin64\Cygwin-Terminal.ico"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCygwinHerecommand]
@=""C:\cygwin64\bin\sh" -lic "source ~/.bash_profile; cd cd \"${OLDPWD-.}\"; bash""