chore: add Scoop docs

This commit is contained in:
Jan De Dobbeleer 2020-11-01 17:56:05 +01:00
parent 1df4549b8d
commit 33d099a004
3 changed files with 50 additions and 1 deletions

View file

@ -38,6 +38,12 @@ But, if you insist on doing it manually, or you use a pre-core version of PowerS
}>
<TabItem value="windows">
#### Scoop
A [Scoop][scoop] package is available to assist installs on Windows.
#### Manual
```powershell
mkdir C:\tools
Invoke-Webrequest https://github.com/JanDeDobbeleer/oh-my-posh3/releases/latest/download/posh-windows-amd64.exe -OutFile C:\tools\oh-my-posh.exe
@ -46,6 +52,7 @@ Invoke-Webrequest https://github.com/JanDeDobbeleer/oh-my-posh3/releases/latest/
</TabItem>
<TabItem value="macos">
#### Manual
```bash
wget https://github.com/JanDeDobbeleer/oh-my-posh3/releases/latest/download/posh-darwin-amd64 -O /usr/local/bin/oh-my-posh
@ -55,6 +62,7 @@ chmod +x /usr/local/bin/oh-my-posh
</TabItem>
<TabItem value="unix">
#### Manual
```bash
wget https://github.com/JanDeDobbeleer/oh-my-posh3/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
@ -198,3 +206,4 @@ Make sure `~/downloadedtheme.json` points to your downloaded or adjusted theme.
[meslo]: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Meslo.zip
[powershell]: /docs/powershell
[themes]: https://github.com/JanDeDobbeleer/oh-my-posh3/tree/main/themes
[scoop]: /docs/scoop

View file

@ -0,0 +1,40 @@
---
id: scoop
title: Scoop
sidebar_label: Scoop
---
A [Scoop][scoop] package that installs the Oh my Posh Windows and Linux binaries on Windows.
Use these in your shell of choice afterwards by going through the [installation guide][install].
:::caution Font icons
For maximum enjoyment, make sure to **install** and **configure** your terminal to use a powerline enabled font.
The fonts we use are patched by [Nerd Fonts][nerdfonts], which offer a maximum of icons you can use to configure your prompt.
To easily find the icon you want, have a look at their [cheat sheet][nf-cheat].
:::
## Installation
```powershell
scoop install https://github.com/JanDeDobbeleer/oh-my-posh3/releases/latest/download/oh-my-posh.json
```
This installs a couple of things:
- `posh-windows-amd64.exe` - Windows executable, added to your `$PATH`
- `posh-linux-amd64` - Linux executable, added to your `$PATH` for use in the WSL
- `themes` - The latest Oh m my Posh themes
If you want to use a standard theme, you can find them in `~\scoop\apps\oh-my-posh\current\themes\`, referencing them as such
will always keep them compatible with the binary when updating Oh my Posh.
## Update
```powershell
scoop update oh-my-posh
```
[scoop]: https://scoop.sh/
[install]: /docs/installation
[nerdfonts]: https://www.nerdfonts.com/
[nf-cheat]: https://www.nerdfonts.com/cheat-sheet

View file

@ -8,7 +8,7 @@ module.exports = {
{
type: "category",
label: "Packages",
items: ["powershell"],
items: ["powershell", "scoop"],
},
{
type: "category",