Skip to content

Instantly share code, notes, and snippets.

@giseongeom
Last active April 2, 2024 17:22
Show Gist options
  • Save giseongeom/3427cf1acefbbe6a6897a1889aebc13e to your computer and use it in GitHub Desktop.
Save giseongeom/3427cf1acefbbe6a6897a1889aebc13e to your computer and use it in GitHub Desktop.
Open shell with conhost (without Windows Terminal)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &CMD]
@="Open with &CMD"
"Icon"="C:\\Windows\\System32\\conhost.exe"
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &CMD\command]
@="C:\\Windows\\System32\\conhost.exe cmd /s /k pushd \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &Powershell]
@="Open with &Powershell"
"Icon"="c:\\Program Files\\PowerShell\\7\\pwsh.exe"
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &Powershell\command]
@="C:\\Windows\\System32\\conhost.exe pwsh -noexit -command Set-Location -literalPath \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &WindowsPowershell]
@="Open with &WindowsPowershell"
"Icon"="c:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe"
[HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &WindowsPowershell\command]
@="C:\\Windows\\System32\\conhost.exe powershell -noexit -command Set-Location -literalPath \"%V\""
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &CMD]
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &CMD\command]
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &Powershell]
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &Powershell\command]
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &WindowsPowershell]
[-HKEY_CURRENT_USER\Software\Classes\Directory\shell\Open with &WindowsPowershell\command]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment