Closed GavinOsborn closed 2 years ago
@GavinOsborn this is possibly right. The segment was created by a contributor and probably only used a unix environment. I'll adjust.
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. If you have found a problem that seems similar, please open a discussion first, complete the body with all the details necessary to reproduce, and mention this issue as reference.
Code of Conduct
What happened?
The GCP segment does not appear to load config from the correct location on windows - I don't know about other platforms.
oh-my-posh debug
tells me that it searches for config inC:\Users\OsbornG\.config\gcloud\active_config
but...When I install the GCloud SDK with next next next defaults following the instructions on the website the command
gcloud info
reports the following config location:This is my first time installing the GCloud CLI on Windows so I'm unsure if this is a change in behavior.
Theme
{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "blocks": [ { "alignment": "left", "newline": false, "segments": [ { "background": "blue", "foreground": "yellow", "type": "gcp", "style": "powerline", "powerline_symbol": "\ue0b4", "template": "{{ if .Error }} {{ .Error }} {{ else }} {{ .Project }} {{ end }}" } ], "type": "prompt" } ], "version": 2 }
What OS are you seeing the problem on?
Windows
Which shell are you using?
bash, powershell
Log output