I love the Windows Terminal, but right now I launch the Terminal, then I pick a Shell (PowerShell, CMD, bash, etc) from the menu. Sometimes I want to be “shell-first.” I’ll hit the Start Menu, type cmd, and then the older console/terminal starts up. I have to remember to run Terminal THEN run cmd. So I said to myself, “self, what’s a good way to fix that?” When you press Start and start typing (which is different from WinKey+R and running a .exe directly) you’re looking at Shortcuts/LNK files. You can make your own and change existing ones. Press Start, type “Command Prompt” or “PowerShell” and then RIGHT CLICK the icon and Open File Location. For example, Command Prompt was here on my machine: C:\Users\scott\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools So I Ctrl+C, Ctrl+V to make a copy (backup) or I can just right click and hit properties to change the one I have. Then I change the Target to wt.exe (Windows Terminal) and pass in the Named Profile for the Shell I want: C:\Users\scott\AppData\Local\Microsoft\WindowsApps\wt.exe -p "Command Prompt" In this case, it’s Command Prompt. I also renamed my LNK file to Command Prompt (Terminal) but that’s optional. I can do the same thing for PowerShell. I’ve moved to open source PowerShell 7 (based on .NET Core) that I installed from the Windows Store. Some store apps don’t want you to change their icons so I just changed another. You can also make your own with right-click, New Shortcut. I even did this with the Visual Studio 2019 Developer Prompt by first making a Profile for it in my Terminal settings: { and then changing the icon to call it with wt.exe and the named profile. This can also work with Cygwin, Yori, Ubuntu, or any other shell. A few minutes and a few shortcut changes later, now I can hit start, type PowerShell, command, cmd, whatever, and it’ll all load in Windows Terminal! Since this technique works only with lnk files that the Start Menu consumes, it also works with PowerToys Run (which is like Quicksilver or Spotlight on Mac)! ![]() Hope this helps! Sponsor: The No. 1 reason developers choose Couchbase? You can use your existing SQL++ skills to easily query and access JSON. That’s more power and flexibility with less training. Learn more. © 2021 Scott Hanselman. All rights reserved. How to make Command Prompt, PowerShell, or any Shell launch from the Start Menu directly into Windows Terminal published first on http://7elementswd.tumblr.com/ via Tumblr How to make Command Prompt, PowerShell, or any Shell launch from the Start Menu directly into Windows Terminal
0 Comments
Leave a Reply. |
About UsIf you want to keep up with the latest in web design, you have to be willing to study and learn on an ongoing basis. If you are a web developer or web designer, you’ll find a lot of useful tutorials and code snippets collection here. Furthermore, we also discuss more general topics of web design and how the role of a web designer has evolved over the years.
|