Skip to content

Instantly share code, notes, and snippets.

@MRDGH2821
Created December 27, 2021 14:11
Show Gist options
  • Save MRDGH2821/69aa46f5c52daecb140c7f7ccdecf969 to your computer and use it in GitHub Desktop.
Save MRDGH2821/69aa46f5c52daecb140c7f7ccdecf969 to your computer and use it in GitHub Desktop.
A random theme loader for Oh-my-posh in Windows Powershell
$theme = Get-ChildItem $env:UserProfile\AppData\Local\Programs\oh-my-posh\themes\ | Get-Random
echo $theme.name
oh-my-posh --init --shell pwsh --config $theme.FullName | Invoke-Expression
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment