Skip to content

Instantly share code, notes, and snippets.

@ugovaretto
Created June 7, 2025 09:02
Show Gist options
  • Save ugovaretto/3d8ed9955c4766f1a4594ba5d7f6f672 to your computer and use it in GitHub Desktop.
Save ugovaretto/3d8ed9955c4766f1a4594ba5d7f6f672 to your computer and use it in GitHub Desktop.
Add virtual env information to Oh my Posh prompt
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