
- Install Windows Terminal
- Install PowerShell
- Install Git for Windows
- Optionally trust the PSGallery repository
Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted
- Install posh-git
Install-Module posh-git
- Install Oh My Posh
Install-Module oh-my-posh
- Install a font with PowerLine support
- https://www.nerdfonts.com/font-downloads
- My choice: Caskaydia Cove
- File to install on Windows: Caskaydia Cove Nerd Font Complete Windows Compatible.ttf
- Set the font as default for PowerShell

- Create your own theme (or use a default)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#ffe9aa", | |
"foreground": "#100e23", | |
"powerline_symbol": "", | |
"style": "powerline", | |
"type": "root" | |
}, | |
{ | |
"background": "#91ddff", | |
"foreground": "#100e23", | |
"powerline_symbol": "", | |
"properties": { | |
"folder_separator_icon": " ", | |
"home_icon": "\uf015 ", | |
"style": "full", | |
"mapped_locations_enabled": true, | |
"mapped_locations": [ ] | |
}, | |
"style": "powerline", | |
"type": "path" | |
}, | |
{ | |
"background": "#95ffa4", | |
"foreground": "#193549", | |
"powerline_symbol": "", | |
"style": "powerline", | |
"type": "git", | |
"properties": { | |
"display_upstream_icon": true, | |
"github_icon": "\uF408 ", | |
"branch_gone_icon": "\b", | |
"branch_identical_icon": "\b", | |
"display_stash_count": true, | |
"stash_count_icon": "| \uF692 ", | |
"commit_icon": "\uF417 ", | |
"tag_icon": "\uF412 ", | |
"rebase_icon": "\uE728 ", | |
"cherry_pick_icon": "\uE29B ", | |
"merge_icon": "\uE727 " | |
} | |
}, | |
{ | |
"foreground": "#888888", | |
"type": "executiontime", | |
"style": "powerline", | |
"background": "#cccccc", | |
"powerline_symbol": "", | |
"properties": { | |
"prefix": " \uf017 ", | |
"threshold": 5000 | |
} | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"type": "newline" | |
}, | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "#007ACC", | |
"properties": { | |
"prefix": "", | |
"text": "❯" | |
}, | |
"style": "plain", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"final_space": false | |
} |
- Configure theme in your PowerShell profile
- If you don’t have a profile:
notepad $PROFILE
- If you already have a profile:
ii $PROFILE
Set-PoshPrompt -Theme "Path\To\Theme.json"
- If you don’t have a profile:
