masadsummair / oh-my-posh-window-guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

oh-my-posh-window-guide

  • install winget
  • install Nerd Fonts: nerd-fonts (to get icons ,dont worries you can still use your favorite font if they are available in nerd-fonts)
    • goto release : img-1
    • choose your favorite font and install its zip (choose from latest release): img-2
  • then extract it and install it
  • install oh my posh

Installation

winget install JanDeDobbeleer.OhMyPosh -s winget

Update

winget upgrade JanDeDobbeleer.OhMyPosh -s winget

For default theme enable:

oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression

Want more themes?

Get-PoshThemes

if you restart powershell everything will go away :) no worries i got you.

to check which shell are you in:

oh-my-posh get shell

if you are in powershell:

notepad $PROFILE

When the above command gives an error, make sure to create the profile first.

New-Item -Path $PROFILE -Type File -Force

In this scenario, it can also be that PowerShell blocks running local scripts. To solve that, set PowerShell to only require remote scripts to be signed using Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine, or sign the profile.

Then add the following line in the file.(you can select any other theme )

oh-my-posh init pwsh --config 'C:\Users\${username}$\AppData\Local\Programs\oh-my-posh\themes\{themename}.omp.json' | Invoke-Expression>

About