website/docs/installation/windows.mdx
import ThemedImage from '@theme/ThemedImage'; import Tabs from "@theme/Tabs"; import TabItem from "@theme/TabItem"; import Next from "./next.md";
While Oh My Posh works on the standard terminal, we advise using the Windows Terminal.
:::info To display all icons, we recommend the use of a Nerd Font. :::
:::caution When using oh-my-posh inside the WSL, make sure to follow the Linux installation guide. :::
<a href="https://apps.microsoft.com/detail/xp8k0hkjfrxgck?mode=mini" target="_blank"> <ThemedImage alt="msstore" width="232" height="68" sources={{ light: '/img/msstore-dark.svg', dark: '/img/msstore-light.svg', }} /> </a><Tabs defaultValue="winget" groupId="install" values={[ { label: 'winget', value: 'winget', }, { label: 'manual', value: 'manual', }, { label: 'chocolatey', value: 'chocolatey'}, ] }> <TabItem value="winget">
Open a PowerShell prompt and run the following command:
winget install JanDeDobbeleer.OhMyPosh --source winget
Open a PowerShell prompt and run the following command:
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
:::info The chocolatey package is maintained by the community and might not be up to date. In case of issues, please contact the maintainer. :::
Open a PowerShell prompt and run the following command:
choco install oh-my-posh
<Tabs defaultValue="winget" groupId="install" values={[ { label: 'winget', value: 'winget', }, { label: 'manual', value: 'manual', }, { label: 'chocolatey', value: 'chocolatey'}, ] }> <TabItem value="winget">
Open a PowerShell prompt and run the following command:
winget upgrade JanDeDobbeleer.OhMyPosh --source winget
Open a PowerShell prompt and run the following command:
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://ohmyposh.dev/install.ps1'))
:::info The chocolatey package is maintained by the community and might not be up to date. In case of issues, please contact the maintainer. :::
Open a PowerShell prompt and run the following command:
choco upgrade oh-my-posh