右键添加在此处打开cygwin

将以下代码存为.reg文件,双击运行即可

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCygwinHere]
"ShowBasedOnVelocityId"=dword:00639bc8
@="在此处打开Cygwin"
"Icon"="C:\\cygwin64\\Cygwin-Terminal.ico"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCygwinHere\command]
@="\"C:\\cygwin64\\bin\\sh\" -lic \"source ~/.bash_profile; cd ${OLDPWD-.}; bash\""

相关推荐