Skip to content

Commit

Permalink
docs: add info for the themes page
Browse files Browse the repository at this point in the history
  • Loading branch information
tradiff authored and JanDeDobbeleer committed Mar 13, 2021
1 parent da89b8c commit 20e7d22
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
16 changes: 16 additions & 0 deletions docs/docs/themes.md
Expand Up @@ -4,6 +4,18 @@ title: Themes
sidebar_label: 🎨 Themes
---

Oh my Posh comes with many themes included out of the box. Below are some screenshots of the more common themes.
For the full updated list of themes, [view the themes][themes] in Github. If you are using PowerShell, you can
display every available theme, use the following PowerShell cmdlet.

```powershell
Get-PoshThemes
```

Once you're ready to swap to a theme, follow the steps described in [🚀Installation/Replace your existing prompt][replace-you-existing-prompt].

Themes with `minimal` in their names do not require a Nerd Font. Read about [🆎Fonts][fonts] for more information.

### [Agnoster]

[![Agnoster](/img/themes/agnoster.png)][Agnoster]
Expand Down Expand Up @@ -80,6 +92,10 @@ sidebar_label: 🎨 Themes

[![Zash](/img/themes/zash.png)][Zash]

[themes]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes
[fonts]: /docs/fonts
[replace-you-existing-prompt]: /docs/installation#3-replace-your-existing-prompt

[Agnoster]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/agnoster.omp.json 'Agnoster'
[AgnosterPlus]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/agnosterplus.omp.json 'AgnosterPlus'
[Aliens]: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/aliens.omp.json 'Aliens'
Expand Down
10 changes: 7 additions & 3 deletions packages/powershell/oh-my-posh/oh-my-posh.psm1
Expand Up @@ -76,13 +76,17 @@ function Get-PoshThemes {
Write-Host $logo
$poshCommand = Get-PoshCommand
Get-ChildItem -Path "$PSScriptRoot\themes\*" -Include '*.omp.json' | Sort-Object Name | ForEach-Object -Process {
Write-Host ("=" * $consoleWidth)
Write-Host "$esc[1m$($_.BaseName)$esc[0m"
Write-Host ("" * $consoleWidth)
Write-Host "Theme: $esc[1m$($_.BaseName.Replace('.omp', ''))$esc[0m"
Write-Host ""
& $poshCommand -config $($_.FullName) -pwd $PWD
Write-Host ""
}
Write-Host ("=" * $consoleWidth)
Write-Host ("" * $consoleWidth)
Write-Host ""
Write-Host "To change your theme, use the Set-PoshPrompt command. Example:"
Write-Host " Set-PoshPrompt -Theme jandedobbeleer"
Write-Host ""
}

function Export-PoshTheme {
Expand Down

0 comments on commit 20e7d22

Please sign in to comment.