Hello everyone! Today I gonna show you how to set up the Windows terminal to look great.
✨ Content
- Install the Windows terminal
- Install Oh My Posh
- Install fonts
- Install icons
- Select the prompt
- Set up the terminal background
⚙ Requirements
- Windows ≥ 10
- Oh My Posh
- Nerd fonts
📚 GitHib Repo
1. Install Windows Terminal
To install this terminal you should have Windows 10 or 11. It's very easy, You direct to the Microsoft store and search Windows terminal and install this option:
Or install the Terminal via this link: https://apps.microsoft.com/store/detail/windows-terminal/9N0DX20HK701
2. Install Oh My Posh
You can install Oh My Posh via Winget, scoop, or manually with PowerShell commands.
I installed it via Winget:
winget install JanDeDobbeleer.OhMyPosh -s winget
3. Install fonts
This part is important because the fonts are giving the icons for their own terminal.
I installed the Hack Nerd Fonts:
Then, you should extract the font files and copy them and move to this place.
Note: Search fonts settings, then drag and drop the files and press install fonts.
And Select in the Terminal the Hack Nerd Fonts:
4. Install Icons
For you can see the icons in your terminal, you should install the next repository:
To install:
Install-Module -Name Terminal-Icons -Repository PSGallery
Usage: Copy this code into Microsoft.PowerShell_profile.ps1
file on the route ⇒ C:\Users\YOUR_USER_NAME\OneDrive\Documentos\PowerShell
Import-Module -Name Terminal-Icons
and your terminal looks like this:
5. Select the prompt
Oh My Posh has many themes for the terminal, I like the half-life theme and to select this theme you write inside the config file the next code:
# C:\Users\YOUR_USER_NAME\OneDrive\Documentos\PowerShell\Microsoft.PowerShell_profile.ps1
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\half-life.omp.json" | Invoke-Expression
And this is the result:
6. Set up the terminal background
Go to the terminal settings and activate the option “Use the acrylic material in the tab row” ubicated in the appearance section and save.
Then go to predeterminate values/appearance and in the transparency section active the material acrylic, play with the opacity, and save:
And the result looks like this:
This is what the config file looks like:
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\half-life.omp.json" | Invoke-Expression
Import-Module -Name Terminal-Icons
And that's all, Thank you for reading, and see you later :)
Top comments (1)
How to record screen without background?