File tree Expand file tree Collapse file tree
website/docs/installation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,11 +60,10 @@ without any interaction needed.
6060Open a PowerShell prompt and run the following command:
6161
6262``` powershell
63- Add-AppxPackage -AppInstallerFile https://cdn.ohmyposh.dev/releases/latest/install-x64.appinstaller
63+ $arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'x64' }
64+ Add-AppxPackage -AppInstallerFile "https://cdn.ohmyposh.dev/releases/latest/install-$arch.appinstaller"
6465```
6566
66- For ARM64, use ` install-arm64.appinstaller ` instead.
67-
6867</TabItem >
6968<TabItem value = " chocolatey" >
7069
@@ -111,7 +110,8 @@ No action needed, Windows updates Oh My Posh automatically in the background.
111110To force an update check, run the install command again:
112111
113112``` powershell
114- Add-AppxPackage -AppInstallerFile https://cdn.ohmyposh.dev/releases/latest/install-x64.appinstaller
113+ $arch = if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq 'Arm64') { 'arm64' } else { 'x64' }
114+ Add-AppxPackage -AppInstallerFile "https://cdn.ohmyposh.dev/releases/latest/install-$arch.appinstaller"
115115```
116116
117117</TabItem >
You can’t perform that action at this time.
0 commit comments