New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to change theme since v3.75.1 #355
Comments
It works for me without the -Theme switch, can you tab through it and validate the autocomplete and setting of the prompt? |
@LarsBauer allow me to validate this in the evening. I did check that so maybe there's something else that influences this negatively. It sets a config, but as the text states, it can't open that location somehow. |
@LarsBauer confirmed to work on my machine, so some follow-up questions. Do you have a space in a folder somewhere? Or a mounted drive/Onedrive integration? |
Yes, OneDrive integration is enabled so I guess there could be some spaces in the path. Can't check for sure because I am not on my work computer right now. |
That's probably it though, will try to reproduce 😅 |
@LarsBauer found the issue. Fix incoming. |
Just upgraded and the issue is gone. 👍 |
Do you know what was causing the problem? I also find it weird it says UNABLE TO OPEN CONFIG. I'm getting this with version 3.129.0 |
Can you show me your invocation? |
Same as OP, Import-Module oh-my-posh
Set-PoshPrompt -Theme agnoster
# or
Set-PoshPrompt agnoster But I must say, the computer I'm using is pretty locked down for security reasons. I've tested the same in my own personal PC and it works fine with the same version. One of the reasons I wanted oh-my-posh was the git display. I'm currently settling with using posh-git directly. |
I am able to copy the file to C: and set the theme now. Thanks. On the other note, |
@danvim That's a problem in Powershell yes |
Installed in pwsh 7 (core) under Debian Set-PoshTheme ys UNABLE TO OPEN CONFIG Set-PoshTheme jandedobbeleer Works just fine Also works with theme Slim So at least with export of theme 'ys' we get a ' UNABLE TO OPEN CONFIG' |
Allow me to check that. |
I will allow that. |
@rolflobker someone added a |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. |
Prerequisites
CONTRIBUTING
guideDescription
After upgrading to the latest version of the PowerShell module I noticed that the theme was reset to the default one. I tried to change it but the command
Set-PoshPrompt -Theme sorin
does not work. So I started downgrading and with v3.75.0 it started working again.This is my PowerShell profile:
Environment
Steps to Reproduce
Expected behavior: The prompt should change to the selected theme.
Actual behavior: The prompt does not change.
The text was updated successfully, but these errors were encountered: