File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,21 @@ Expand-Archive ~\.poshthemes\themes.zip -DestinationPath ~\.poshthemes -Force
132132Remove-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
149164rm ~ /.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
162185rm ~ /.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
You can’t perform that action at this time.
0 commit comments