注册表
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDirectoryBackgroundshellmingw64] @="open with mingw64" "Icon"="C:\msys64\mingw64.ico" [HKEY_CLASSES_ROOTDirectoryBackgroundshellmingw64command] @=""C:\msys64\mingw64.exe" "C:\msys64\dir.sh" "%V""
dir.sh 脚本
# echo $1 # dir=$1 # dir=${dir/:/} # dir=${dir//\//} # cd /$dir # echo $1 /bin/bash