Skip to content

Commit

Permalink
chore(docs): print all the themes
Browse files Browse the repository at this point in the history
resolves #191
  • Loading branch information
JanDeDobbeleer committed Dec 3, 2020
1 parent 5b275cc commit 67beefe
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/docs/installation.mdx
Expand Up @@ -132,6 +132,21 @@ Expand-Archive ~\.poshthemes\themes.zip -DestinationPath ~\.poshthemes -Force
Remove-Item ~\.poshthemes\themes.zip
```

#### Preview the themes

When using Scoop, replace `"~\.poshthemes\*"` with `"$(scoop prefix oh-my-posh)/themes/*"`

```powershell
Get-ChildItem -Path "~\.poshthemes\*" -Include '*.omp.json' | Sort-Object Name | ForEach-Object -Process {
$esc = [char]27
Write-Host ""
Write-Host "$esc[1m$($_.BaseName)$esc[0m"
Write-Host ""
& "C:\tools\oh-my-posh.exe" -config $($_.FullName) -pwd $PWD
Write-Host ""
}
```

</TabItem>
<TabItem value="macos">

Expand All @@ -149,6 +164,14 @@ chmod u+rw ~/.poshthemes/*.json
rm ~/.poshthemes/themes.zip
```

#### Preview the themes

When using Hombrew, replace `~/.poshthemes/*.omp.json` with `$(brew --prefix oh-my-posh)/themes/*.omp.json`

```bash
for file in ~/.poshthemes/*.omp.json; do echo "$file\n"; oh-my-posh --config $file --shell universal; echo "\n"; done;
```

</TabItem>
<TabItem value="unix">

Expand All @@ -162,6 +185,12 @@ chmod u+rw ~/.poshthemes/*.json
rm ~/.poshthemes/themes.zip
```

#### Preview the themes

```bash
for file in ~/.poshthemes/*.omp.json; do echo "$file\n"; oh-my-posh --config $file --shell universal; echo "\n"; done;
```

</TabItem>
</Tabs>

Expand Down

0 comments on commit 67beefe

Please sign in to comment.