For the first time in a long time, Windows has re-entered my life now that I work at Microsoft.
In macOS land, I use iTerm and oh-my-zsh to make a pretty shell environment with all the colors and such, so when I got to Windows again and lanched into the blue Powershell Window, I figured there had to be something better...
This is what Powershell looks like now!
The first thing to make sure you have installed is the Windows Terminal.
That is a fantastic product, and even has built in support for WSL, CMD, Azure, and launching into Ubuntu or whatever your Linux Environment is...
Another #protip is you can hold Ctrl + Shift when launching Windows Terminal and it'll open as an Administrator.
Windows Terminal is super easy to configure as well, and there are themes for it as well at >_TerminalSplash - Windows Terminal Themes or Windows Terminal Themes. You simply copy the JSON from those sites, and open the Windows Terminal Settings and Click "Open JSON File"...
Oh My Posh
To install, simply run...
Install-Module oh-my-posh -Scope CurrentUser
Then you can list all the themes with...
Once you find one you like, you can edit your
$PROFILE in your editor of choice, e.g.
code -a $PROFILE.
And you can set your theme up with...
Set-PoshPrompt -Theme jandedobbeleer
The last thing you'll more than likely also have to do is download the right fonts that supports "Powerline" fonts, the Oh My Posh docs talk about that. More than likely, you'll choose a font from Nerd Fonts, and update your Windows Terminal settings to point to the new font.
"fontFace": "MesloLGL Nerd Font"
It'll even show you what version of node you're in as well as many other what they call "Segments"...
There ya go! You'll be the envy of all your Windows code demos in meetings going forward.