Skip to content

Commit 67beefe

Browse files
chore(docs): print all the themes
resolves #191
1 parent 5b275cc commit 67beefe

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/docs/installation.mdx

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,21 @@ Expand-Archive ~\.poshthemes\themes.zip -DestinationPath ~\.poshthemes -Force
132132
Remove-Item ~\.poshthemes\themes.zip
133133
```
134134

135+
#### Preview the themes
136+
137+
When using Scoop, replace `"~\.poshthemes\*"` with `"$(scoop prefix oh-my-posh)/themes/*"`
138+
139+
```powershell
140+
Get-ChildItem -Path "~\.poshthemes\*" -Include '*.omp.json' | Sort-Object Name | ForEach-Object -Process {
141+
$esc = [char]27
142+
Write-Host ""
143+
Write-Host "$esc[1m$($_.BaseName)$esc[0m"
144+
Write-Host ""
145+
& "C:\tools\oh-my-posh.exe" -config $($_.FullName) -pwd $PWD
146+
Write-Host ""
147+
}
148+
```
149+
135150
</TabItem>
136151
<TabItem value="macos">
137152

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

167+
#### Preview the themes
168+
169+
When using Hombrew, replace `~/.poshthemes/*.omp.json` with `$(brew --prefix oh-my-posh)/themes/*.omp.json`
170+
171+
```bash
172+
for file in ~/.poshthemes/*.omp.json; do echo "$file\n"; oh-my-posh --config $file --shell universal; echo "\n"; done;
173+
```
174+
152175
</TabItem>
153176
<TabItem value="unix">
154177

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

188+
#### Preview the themes
189+
190+
```bash
191+
for file in ~/.poshthemes/*.omp.json; do echo "$file\n"; oh-my-posh --config $file --shell universal; echo "\n"; done;
192+
```
193+
165194
</TabItem>
166195
</Tabs>
167196

0 commit comments

Comments
 (0)