Install Windows Terminal: https://github.com/microsoft/terminal/releases
Install Git for Windows: https://git-scm.com/downloads
Install Cascadia Code PL
Font: https://github.com/microsoft/cascadia-code/releases
- Oh-My-Posh provides theme capabilities for your PowerShell prompt.
- Posh-Git adds Git status information to your prompt as well as tab-completion for Git
Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Note: To update a module use the command: Update-Module
- PSReadline lets you customize the command line editing environment in PowerShell.
Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck
- Open your PowerShell profile with a code editor:
code $PROFILE
notepad $PROFILE
notepad++ $PROFILE
or the text editor of your choice.
This is not your Windows Terminal profile.
Your PowerShell profile is a script that runs every time PowerShell starts.
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/tokyonight_storm.omp.json" | Invoke-Expression
You can view themes or preview them with:
# List Themes Name
Get-PoshThemes -list
# List Themes with Preview
Get-PoshThemes
If you like another one just replace the theme name in the profile line: 'tokyonight_storm.omp.json' with the desired one.
Open Windows Terminal Settings.
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"fontFace": "Cascadia Code PL",
"fontSize" : 11,
"colorScheme" : "One Half Dark",
"hidden": false
},
Save the file.
Done
Campbell
Campbell Powershell
Vintage
One Half Dark
One Half Light
Tango Dark
Tango Light
Solarized Dark
Solarized Light
- View Themes Path:
ls $env:POSH_THEMES_PATH
- Oh My Posh Themes to Try:
Agnoster
Paradox
Robbyrussel
Pararussel
https://github.com/microsoft/terminal/releases
https://github.com/JanDeDobbeleer/oh-my-posh
https://github.com/dahlbyk/posh-git
https://github.com/microsoft/cascadia-code/releases
https://git-scm.com/downloads
https://www.powershellgallery.com/packages/oh-my-posh/
https://www.powershellgallery.com/packages/posh-git/
https://www.powershellgallery.com/packages/PSReadLine/
Why not update this description? The 'Set-Theme' command has been replaced by 'Set-PoshPrompt' a long time ago. And this is confusing for beginners.