Skip to content

Instantly share code, notes, and snippets.

@ddieppa
Last active April 8, 2024 04:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddieppa/c07a8caba016f6b723df3f523b5ce2e0 to your computer and use it in GitHub Desktop.
Save ddieppa/c07a8caba016f6b723df3f523b5ce2e0 to your computer and use it in GitHub Desktop.
OhMyPosh Configuration and PowerShell Profile

OhMyPosh Configuration and PowerShell Profile

Install OhMyPosh

you can use the instructions under the ohmyposh docs

Install Terminal-Icons

Follow instructions here

Enable Posh-Git in powershell

PowerShell offers support for the posh-git module for autocompletion, but it is disabled by default. To enable this, set $env:POSH_GIT_ENABLED = $true in your $PROFILE. This info came from OhMyPosh Docs

Or you can follow Scott Hanselman blogs about Customizing Windows Terminal

oh-my-posh --init --shell pwsh --config C:\juniper\ohmyposh-themes\microverse-power.omp.json | Invoke-Expression
$env:POSH_GIT_ENABLED = $true
Import-Module -Name Terminal-Icons
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment