Created
June 7, 2025 09:02
-
-
Save ugovaretto/3d8ed9955c4766f1a4594ba5d7f6f672 to your computer and use it in GitHub Desktop.
Add virtual env information to Oh my Posh prompt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Past the following in the "segments" section of the theme's JSON file: | |
{ | |
"background": "#FFDE57", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "environment", | |
"fetch_virtual_env": true, | |
"home_enabled": true | |
}, | |
"style": "powerline", | |
"template": " \ue235 {{ if .Venv }}({{ .Venv }}){{ end }} ", | |
"type": "python" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment