Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
December 20, 2021 01:08 pm GMT

Things you might not know about Windows Terminal

With Microsoft announcing that Windows Terminal will be the new default terminal, I wanted to take the time to share some of the things you might not know about the new default.

Launch anything

You can configure Windows Terminal with various profiles that let you launch into any program you want.

Say you needed to remote into a machine super often. Setting up a profile with ssh user@hostname puts you right into that machine with a Ctrl + Shift + <number> keystroke. The same can be done for WSL containers or REPLs. I literally use my Node REPL profile daily for quickly transforming objects or making quick calculations.

Launch Anywhere

You can also set your starting directory so you can have shortcuts to open a new tab in any directory you choose. I use this to quickly get between my main projects.

Launch as anyone

This is more of a hacky workaround for the PowerShell "Run as different user" option but as long as you have an SSH server running you can SSH into your own system as another user. Simply run ssh [domain\]username@localhost and you're able to log in (as admin)! If you find yourself doing this often, put it in a profile since it's no different to any other SSH command.

The feature we are trying to emulate

The feature we are trying to emulate

Have a terminal that looks like it's been updated since the 90s

Windows Terminal supports ligatures and Nerd Fonts so installing one of those opens the door to alternative prompts like Oh My Posh that gives you inline Git info, privilege level and so on. I have mentioned this before and go into greater detail on another post but it's worth mentioning again because it's so good.

Bonus modernization features you should install anyways

  • Terminal Icons makes your ls a bit prettier and more useful.

  • Change Tab Completion so you can see all arguments and options available to you. You can also bind UpArrow and DownArrow to HistorySearchForward and HistorySearchBackward in the same way to cycle the history of commands starting with what you typed.


Original Link: https://dev.to/jonosellier/things-you-might-not-know-about-windows-terminal-ma2

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To