mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
docs(windows): add chocolatey as an install method
This commit is contained in:
parent
030d52bd6d
commit
01c6b1ae2a
|
@ -37,6 +37,7 @@ When using oh-my-posh inside the WSL, make sure to follow the [Linux][linux] ins
|
|||
{ label: 'winget', value: 'winget', },
|
||||
{ label: 'scoop', value: 'scoop', },
|
||||
{ label: 'manual', value: 'manual', },
|
||||
{ label: 'chocolatey', value: 'chocolatey'},
|
||||
]
|
||||
}>
|
||||
<TabItem value="winget">
|
||||
|
@ -65,6 +66,20 @@ 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'))
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="chocolatey">
|
||||
|
||||
:::info
|
||||
The chocolatey package is maintained by the community and might not be up to date.
|
||||
In case of issues, please contact the [maintainer][choco-maintainer].
|
||||
:::
|
||||
|
||||
Open a PowerShell prompt and run the following command:
|
||||
|
||||
```powershell
|
||||
choco install oh-my-posh
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
@ -105,6 +120,7 @@ Exclusions should be added with the full path to the executable, you can get it
|
|||
{ label: 'winget', value: 'winget', },
|
||||
{ label: 'scoop', value: 'scoop', },
|
||||
{ label: 'manual', value: 'manual', },
|
||||
{ label: 'chocolatey', value: 'chocolatey'},
|
||||
]
|
||||
}>
|
||||
<TabItem value="winget">
|
||||
|
@ -133,6 +149,20 @@ 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'))
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="chocolatey">
|
||||
|
||||
:::info
|
||||
The chocolatey package is maintained by the community and might not be up to date.
|
||||
In case of issues, please contact the [maintainer][choco-maintainer].
|
||||
:::
|
||||
|
||||
Open a PowerShell prompt and run the following command:
|
||||
|
||||
```powershell
|
||||
choco upgrade oh-my-posh
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
|
@ -149,3 +179,4 @@ for the prompt initialization in PowerShell.
|
|||
[linux]: /docs/installation/linux
|
||||
[themes]: /docs/themes
|
||||
[report-false-positive]: https://docs.microsoft.com/en-us/microsoft-365/security/defender/m365d-autoir-report-false-positives-negatives#report-a-false-positivenegative-to-microsoft-for-analysis
|
||||
[choco-maintainer]: https://github.com/digitalcoyote/chocolatey-packages
|
||||
|
|
Loading…
Reference in a new issue