Many themes do not load with my custom Choose-PoshTheme function #6693
Unanswered
tuba89
asked this question in
Troubleshoot
Replies: 1 comment 1 reply
-
|
@tuba89 you if statement probably needs some work, it's a question that's not related to oh-my-posh but PowerShell. I'll happily have a look after my holidays. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Code of Conduct
What happened?
Many themes do not load with my custom
Choose-PoshThemefunctionEnvironment
Description
I created a PowerShell helper function to quickly switch themes interactively:
Steps to Reproduce
Run the
Choose-PoshThemefunction above.Observe the list of 124 available themes.
Try selecting a theme by number.
1, 10, 11, 12.100 → 124.Invalid choice.Problem
Most themes cannot be loaded — even though they are listed — and return
Invalid choice.Themes that work
Working themes:
Screenshots
Invalid choice example:
Working theme applied:
Expected behavior
All listed themes should be selectable without returning
Invalid choice.Theme
This affects any theme selected through my function, but only some apply correctly.
For example:
Works: darkplus, slim, tokyo-night
Fails: agnoster, paradox, ys (and many others)
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output
Beta Was this translation helpful? Give feedback.
All reactions