DEV Community 👩‍💻👨‍💻

Cover image for Things you might not know about Windows Terminal

Posted on

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.

Top comments (1)

anderssonpeter profile image

I have started a project that I think would be a great fit (it's not done yet but it is functional) it gives you autocomplete for cli tools, currently it only supports a subset of git.

Would love feedback!

Regex for lazy developers

regex for lazy devs

You know who you are. Sorry for the callout 😆