I wanted my Windows terminal to look good and show more at a glance, so I set it up with PowerShell 7, Windows Terminal, Oh My Posh with a Nerd Font, and a few command-line tools. I wrote the steps down so I could repeat them, and so you can too, even if you’ve never customized a terminal before.
Install PowerShell #

Windows ships with the old Windows PowerShell. Oh My Posh works best with the current cross-platform PowerShell 7.
I install it with Winget because it’s quick, but you can also get it from the Microsoft Store ➡️.
From a Windows PowerShell window, run:
winget install Microsoft.PowerShell -s wingetConfigure Windows Terminal #
Since the Windows 11 22H2 update, Windows Terminal is the default terminal. If you don’t have it, install it with Winget or from the Microsoft Store ➡️:
winget install Microsoft.WindowsTerminal -s wingetSet Windows Terminal as the default terminal application #
Open Windows Terminal, right-click on the title bar (outside the tabs) or click the down arrow next to the last tab and select “Settings.” You can also press Ctrl + , to open settings directly.
Find the Startup section. On the right, set PowerShell as the Default Profile and Windows Terminal as the Default Terminal Application, then click “Save.”

Configure PowerShell script execution policy #
By default, Windows desktops use the “Restricted” policy, which runs single commands but not scripts, and Oh My Posh needs scripts. “RemoteSigned” runs local scripts and only requires downloaded ones to be signed, which is enough for most cases.
Run this in PowerShell:
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -ForceTo confirm it worked:
Get-ExecutionPolicyYou should see:
RemoteSignedInstall and configure Oh My Posh #
This is the main piece. It’s very customizable and has a big community behind it.
Install it with Winget. From PowerShell, run:
winget install JanDeDobbeleer.OhMyPosh -s wingetOnce installed, open a new PowerShell tab so everything loads properly.
To update Oh My Posh later, run:
winget upgrade JanDeDobbeleer.OhMyPosh -s wingetInstall a font #
Oh My Posh uses Nerd Fonts, regular fonts patched to include icons. Without one, the icons in your prompt show up as squares.
First, browse the available fonts:
oh-my-posh font listThis prints one font name per line, so you can pipe it to search for something specific:
oh-my-posh font list | findstr /i monoOh My Posh recommends the “Meslo” font family, which includes “Meslo LGM NF.”
Once you’ve picked a name from the list, install it:
oh-my-posh font install mesloFonts always install for your current user, so there’s no need for an elevated terminal. You can also install directly from a URL or a local zip file, for example oh-my-posh font install https://example.com/font.zip.
Configure Windows Terminal to use a Nerd Font #
Open Windows Terminal’s settings JSON file by pressing Ctrl + Shift + , or via “Settings > Open JSON file”.
Find the “profiles” > “defaults” section and add this:
{
"profiles": {
"defaults": {
"font": {
"face": "MesloLGM Nerd Font"
}
}
}
}Save, and your terminal font will update.
Configure Visual Studio Code terminal to use a Nerd Font #
In Visual Studio Code, configure the integrated terminal to use the Nerd Font. Open settings (Ctrl + ,), search for “Integrated: Font Family”, and replace the value with MesloLGM Nerd Font.
Configure PowerShell to use Oh My Posh #
Now tell PowerShell to load Oh My Posh every time a terminal starts.
Open your profile with your favorite editor, for example:
code $PROFILEAdd this line and save:
oh-my-posh init pwsh --strict | Invoke-ExpressionThe --strict flag makes the prompt find oh-my-posh through your PATH. Without it, the init script points to the exact install folder, and since winget upgrade removes the old version, your prompt would break after an update.
Reload your profile:
. $PROFILEYou should see your prompt change right away to something like this:

Set a theme #
Oh My Posh comes with several built-in themes. You can explore them in the Oh My Posh themes documentation ➡️.
Pick one you like, then reference it by name (no extension) in your PowerShell profile line. For example, if you like the minimalist “zash” theme, update the line to:
oh-my-posh init pwsh --strict --config "zash" | Invoke-ExpressionThis downloads and caches the theme on shell start, so you’ll need an internet connection the first time. If you’d rather keep a local copy to tweak, export it to a file instead:
oh-my-posh config export --config zash --output ~/zash.omp.jsonThen point your profile line to that file, --config "~/zash.omp.json".
Save and reload:
. $PROFILE
If you want to revert to the default theme, just use:
oh-my-posh init pwsh --strict | Invoke-ExpressionA few more tools I install #
PSReadLine #
PSReadLine handles command line editing in PowerShell: syntax highlighting, history, suggestions, and keyboard shortcuts. PowerShell 7 already includes it, so there’s nothing to install, and you get a lot without configuring anything:
- Syntax highlighting for commands and arguments
- Suggestions from your history as you type, press
Right arrowto accept one Ctrl + Rto search your historyAlt + Hto show help for the parameter under the cursorCtrl + arrow keysto move by wordsCtrl + Lto clear the screen
A few settings make it even better. Open your PowerShell profile:
code $PROFILEAdd these lines at the top:
Set-PSReadLineOption -BellStyle None
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForwardSave and reload:
. $PROFILEThe first line turns off the beep, for example when you press Backspace on an empty line. The other two change the up and down arrows to search your history based on what you’ve already typed. Type git, press Up, and you’ll only cycle through your previous git commands. On an empty line, the arrows work as usual.
Check all key bindings with:
Get-PSReadLineKeyHandlerOfficial docs at the PSReadLine GitHub repo ➡️
fastfetch #
fastfetch displays system information (OS, software, hardware) next to your OS logo in a clean, readable layout.
Install with:
winget install Fastfetch-cli.FastfetchOpen a new PowerShell tab, then run:
fastfetch
More info at the fastfetch GitHub repo ➡️.
bat #
bat is a clone of cat that adds syntax highlighting and Git integration.
Install with:
winget install sharkdp.batbat needs the Visual C++ Redistributable on Windows. If it doesn’t start, install it with:
winget install Microsoft.VCRedist.2015+.x64
In Windows, install less as well for paging:
winget install jftuga.lessUsage and details at the bat GitHub repo ➡️ and the less-Windows repo ➡️.
eza #
eza is a modern alternative to ls with colors, metadata, symlink recognition, and Git status support.
Install with:
winget install eza-community.ezaOpen a new PowerShell tab to start using it.

See options and docs at the eza GitHub repo ➡️.
If something doesn’t work #
Icons showing as squares or not displaying? Make sure you’ve selected the Nerd Font in all your terminals. Sometimes you need to fully close and reopen apps for the font to apply.
Can’t run scripts?
Ensure you’ve changed the execution policy with Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force and that you’re using PowerShell, not CMD or Windows PowerShell. System-wide installs may require admin rights.
Prompt not changing after setup?
Check that the Oh My Posh command is at the end of your $PROFILE file and that you have reloaded your profile (. $PROFILE). If you edited your profile but don’t see changes, run . $PROFILE manually.
Photo by Sunny Hassan ➡️ on Unsplash ➡️



