chore(docs): print all the themes

resolves #191
This commit is contained in:
Jan De Dobbeleer 2020-12-03 13:39:47 +01:00 committed by Jan De Dobbeleer
parent 5b275cc155
commit 67beefe531

View file

@ -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">
@ -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">
@ -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>