Install ohmyposh
Prerequisites
This process assumes you already have PowerShell 7 installed.
Small Notes
If you are using Warp as your terminal, you may find that oh-my-posh interacts differently to Terminal. I had a brief issue when I first installed it with my commands typing over the prompts on the screen.
Closing and re-opening Warp solved it for me, but your experience may vary.
Installation
brew install jandedobbeleer/oh-my-posh/oh-my-posh
brew update && brew upgrade oh-my-posh
oh-my-posh font installIn case of odd shell behaviour: brew update && brew upgrade && exec zsh after the second line.
Once this has been completed, run pwsh and then run New-Item -Path $PROFILE -Type File -Force if you don' t have a profile file already.
Within the file, add oh-my-posh init pwsh | Invoke-Expression.
Then run . $PROFILE to reload your profile.
You should see the default theme appear.
Custom Theme
References
Last updated