Closed ruicx closed 3 years ago
@ruicx that's because you added those settings to the segment rather than the properties. Adjusting the python
segment to contain those overrides in the properties
makes it work as desired:
{
"type": "python",
"style": "powerline",
"powerline_symbol": "\uE0B0",
"foreground": "#100e23",
"background": "#906cff",
"properties": {
"prefix": " \uE235 ",
"display_mode": "always",
"display_default": true,
"display_virtual_env": true,
"display_version": false
}
}
{ "type": "python", "style": "powerline", "powerline_symbol": "\uE0B0", "foreground": "#100e23", "background": "#906cff", "properties": { "prefix": " \uE235 ", "display_mode": "always", "display_default": true, "display_virtual_env": true, "display_version": false } }
Thanks a lot.
I move them to properties
, and Conda env name fixed, but the python version is still shown.
@ruicx on my machine it only displays base with the exact same configuration. Unless the python version is part of the virtual env name, then it can off course still be displayed.
The first time is with "display_version": true
, the second run is as you have it here.
I switched to Oh-My-Posh V3 from V2 earlier today, and in v2 only the prompt only shows base
, and my env name doesn't contain a version number. Perhaps, there are some issues with my environment variables. Whatever, the version number is not critical. Thanks for your time.
@ruicx are you certain you've set the right config?
I accidentally replaced false
with "false"
on formatting the JSON file. Switching to the correct one, now, it works.
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.
Prerequisites
CONTRIBUTING
guideDescription
Following the document, I set
display_version
tofalse
anddisplay_mode
toalways
, but they seem not work.Environment
Optional
Steps to Reproduce
agnoster-brief
Expected behavior: [What you expected to happen]
.py
file existsIn brief, I hope it looks like this:
Actual behavior: [What actually happened]
My theme (agnoster-brief.omp.json)