Skip to content

Instantly share code, notes, and snippets.

@seancheung
Last active October 5, 2016 05:13
Show Gist options
  • Save seancheung/05848ac546553bf0bde77e0c20b28ff3 to your computer and use it in GitHub Desktop.
Save seancheung/05848ac546553bf0bde77e0c20b28ff3 to your computer and use it in GitHub Desktop.
Register Powershell and Windows Bash to context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\ps]
@="PowerShell Here"
"Extended"=""
"Icon"="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
"HideBasedOnVelocityId"=dword:006698a6
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\ps\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -noexit -command Set-Location '%V'"
[HKEY_CLASSES_ROOT\Directory\Background\shell\ps]
@="PowerShell Here"
"Extended"=""
"Icon"="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe"
"HideBasedOnVelocityId"=dword:006698a6
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\ps\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -noexit -command Set-Location '%V'"
[HKEY_CLASSES_ROOT\Directory\shell\ps_bash]
@="Bash Here"
"Extended"=""
"Icon"="%localappdata%\\lxss\\bash.ico"
"HideBasedOnVelocityId"=dword:006698a6
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\ps_bash\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -noexit -command Set-Location '%V';bash"
[HKEY_CLASSES_ROOT\Directory\Background\shell\ps_bash]
@="Bash Here"
"Extended"=""
"Icon"="%localappdata%\\lxss\\bash.ico"
"HideBasedOnVelocityId"=dword:006698a6
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\ps_bash\command]
@="C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\powershell.exe -noexit -command Set-Location '%V';bash"
[HKEY_CLASSES_ROOT\Directory\shell\cmder]
@="Cmder Here"
"Extended"=""
"Icon"="%programdata%\\cmder\\icons\\cmder.ico"
"HideBasedOnVelocityId"=dword:006698a6
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmder\command]
@="C:\\ProgramData\\cmder\\Cmder.exe \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmder]
@="Cmder Here"
"Extended"=""
"Icon"="%programdata%\\cmder\\icons\\cmder.ico"
"HideBasedOnVelocityId"=dword:006698a6
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmder\command]
@="C:\\ProgramData\\cmder\\Cmder.exe \"%V\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment