In this post, we are going to perform a set of steps to make the terminal look like this.
Install Windows Terminal
-
from Windows store (preferred method)
Install the Windows Terminal from the Microsoft Store.
-
from GitHub
The application can be downloaded via github.
-
via Chocolatey
choco install microsoft-windows-terminal
Theming Windows PowerShell
Now we are going to use oh-my-posh to theme our terminal.
-
Open PowerShell and run.
Install-Module posh-git -Scope CurrentUser Install-Module oh-my-posh -Scope CurrentUser
-
Enable the prompt:
# Start the default settings Set-Prompt # Alternatively set the desired theme: Set-Theme Agnoster
-
then install PSReadLine
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
-
To enable the engine to edit your PowerShell profile:
if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force } notepad $PROFILE
-
Append the following lines to your PowerShell profile:
Import-Module posh-git Import-Module oh-my-posh Set-Theme Agnoster
-
Download cascadia code font and install it (.ttf).
open your terminal and then settings. It will open a JSON file(profiles.json) in a text editor. Update the first item from the list array.
{ // Make changes here to the powershell.exe profile "guid": "{xxxxxxxxxxxxxxxxxxxxxx}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false, "fontFace": "CascadiaCode Nerd Font", "cursorColor": "#FFFFFF", "cursorShape": "bar", "fontSize": 12, "background": "#232524" },
You should be able to see the changes in your terminal.
Next
There are many themes available to try as listed in the theming engine page or you can create a new theme.
Good luck in exploring new themes.