Skip to main content

Change your prompt

tip

If you have no idea which shell you're currently using, Oh My Posh has a utility switch that can tell that to you.

oh-my-posh get shell

Edit your PowerShell profile script, you can find its location under the $PROFILE variable in your preferred PowerShell version. For example, using notepad:

notepad $PROFILE

Then add the following line.

oh-my-posh init pwsh | Invoke-Expression

Once added, reload your profile for the changes to take effect.

. $PROFILE