I am going to share quick steps to get a beautiful terminal in Windows. Because everyone needs a good looking terminal. I’ll use Powershell not bash (Linux subsystem). You may use other shells with Windows Terminal if you like to.
Get the latest Powershell. Don’t think you are using the latest Powershell just because your Windows 10 is up-to-date.
Get-Host | Select-Object Version will return PS Version, or you can use
Powershell 7 (the latest version for the date I’m typing) is a standalone package, it’s not the same as the one that’s built into Windows. So, you have to install it separately. You can find the releases from powerhell github repo. Read more from ms docs if you need to.
- Next, open your new Powershell in Windows Terminal. Go to Windows Terminal Settings, you’ll see a list of shells. Here is an example:
Do not copy-paste this one though, it won’t work.
If “pwsh” is not there, check Powershell’s installation location
C:\Program Files\PowerShell\7\and make sure it’s included in the PATH. You may need to restart your computer after changing PATH. Now, you should have pwsh.exe in the settings, make it default.
NoLogo helps you get rid of the ridiculous message at the start.
You may see,
"source": "Microsoft.Powershell.Core"or something like that instead of
"commandline": ...just replace that line with
"commandline": "pwsh.exe -NoLogo"
- Install oh-my-posh to get a prompt like oh-my-zsh.
Open Powershell Profile:
Add these lines to your profile. You don’t have to use the “Paradox” theme, see what’s available in the repo.
I assume you already have git installed.
The result probably doesn’t look good. That because you don’t use the proper fonts. Install Cascadia Code font. You may choose any other font but it must be a PL - Powerline font.
Bonus: If you are looking for more, you can assign shortcuts (like Ctrl + Alt + T) for the Terminal using AHK.