Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save therealdreg/84b1a5f5d6e74b27eba44d778d6d2340 to your computer and use it in GitHub Desktop.
Save therealdreg/84b1a5f5d6e74b27eba44d778d6d2340 to your computer and use it in GitHub Desktop.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell]
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2]
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2\command]
@="\"C:\\msys64\\msys2_shell.cmd\" \"-here\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2 admin]
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2 admin\command]
@="\"C:\\SysinternalsSuite\\psexec64.exe\" -w \"%w\" -s -i C:\\msys64\\msys2_shell.cmd -here"
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2 MINGW32]
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2 MINGW32\command]
@="\"C:\\msys64\\msys2_shell.cmd\" \"-here\" \"-mingw32\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2 MINGW64]
[HKEY_CLASSES_ROOT\Directory\Background\shell\MSYS2 MINGW64\command]
@="\"C:\\msys64\\msys2_shell.cmd\" \"-here\" \"-mingw64\""
@therealdreg
Copy link
Author

Install sysinternals suite to C:\SysinternalsSuite

right click psexec64.exe -> properties -> Compability tab -> run this program as Administrator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment