Last active
May 25, 2024 16:03
-
-
Save dact221/99bb05341d7931f45dafd8a33b9fe24d to your computer and use it in GitHub Desktop.
My Oh-My-Posh theme
This file contains 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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"version": 2, | |
"console_title": false, | |
"final_space": true, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"leading_powerline_symbol": "", | |
"foreground": "#ffffff", | |
"background": "#243B9C", | |
"template": " {{ .Path }} ", | |
"properties": { | |
"style": "agnoster_short" | |
} | |
}, | |
{ | |
"type": "python", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"foreground": "#ffffff", | |
"background": "#4B8BBE", | |
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Venv }}{{ end }} ", | |
"properties": { | |
"display_mode": "environment", | |
"home_enabled": true | |
} | |
}, | |
{ | |
"type": "root", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"foreground": "#ffffff", | |
"background": "#f7c305" | |
}, | |
{ | |
"type": "status", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"foreground": "#ffffff", | |
"background": "#31A631", | |
"background_templates": ["{{ if gt .Code 0 }}#c50f1f{{ end }}"], | |
"template": " {{ if gt .Code 0 }}{{ else }}{{ end }} ", | |
"properties": { | |
"always_enabled": true | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment