Posts

Showing posts from June, 2021

How To Replace CMD With Windows Terminal In The Winkey + X Shortcut Menu

Image
I want to upgrade from CMD to Microsoft's fancy & shiny Windows Terminal. However, the Windows Key+X then C shortcut I use to open a shell (or Windows Key + X then A for Powershell by default) doesn’t support opening Windows Terminal. Here’s how I patched that keyboard shortcut to open Windows Terminal. Disclaimer: This is my own patchy fix found for fun at 4am after a night of hacking. Proceed at your own risk. How To Replace CMD With Windows Terminal In The Winkey + X Menu Shortcut Option 1: Via Powershell Ensure the Winkey+X C shortcut opens cmd (and not powershell) by going to Settings > Personalization > Taskbar. Set “Replace Command Prompt with PowerShell …” to Off Open Powershell. I use Winkey + R, then type “powershell” and enter. Copy and paste the following code snippet into the powershell window # modify Winkey + X, C $shortcut = (New-Object -ComObject 'WScript.Shell').CreateShortCut("C:\Users\$env:UserName\AppData\Local\Microsoft\Windows\WinX\