Created
February 14, 2022 19:43
-
-
Save Lunchb0ne/fa65de4fb511a80c47cf4c6e0b511e9f to your computer and use it in GitHub Desktop.
My custom bubbles config for oh-my-posh, hides the python segment if env is base, useful for people using anaconda/mamba and want to hide the env if it's not set to anything
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", | |
"blocks": [ | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"background": "#29315A", | |
"foreground": "#E64747", | |
"leading_diamond": "\ue0b6", | |
"properties": { | |
"template": "{{ .UserName }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "session" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#3EC669", | |
"leading_diamond": "\ue0b6", | |
"properties": { | |
"style": "folder", | |
"template": "\ue5ff {{ .Path }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "path" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#43CCEA", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"branch_icon": "", | |
"template": "{{ .HEAD }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "git" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#E4F34A", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": false, | |
"template": "{{ if .Error }}{{ .Error }}{{ else }}{{ if contains \"base\" .Venv }}{{ else }}\ue235{{ .Venv }}{{ end }}{{ .Full }}{{ end }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "python" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#7FD5EA", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": false, | |
"template": "\ufcd1{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "go" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#42E66C", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": false, | |
"template": "\ue718{{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "node" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#E64747", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": false, | |
"template": "\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "ruby" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#E64747", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": false, | |
"template": "\ue738{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "java" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#9B6BDF", | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"fetch_version": false, | |
"template": "\ue624{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "julia" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#9B6BDF", | |
"foreground_templates": [ | |
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", | |
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", | |
"{{if eq \"Full\" .State.String}}#4caf50{{end}}" | |
], | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"charged_icon": " ", | |
"charging_icon": "\u21e1 ", | |
"discharging_icon": "\u21e3 ", | |
"template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "battery" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"background": "#29315A", | |
"foreground": "#AEA4BF", | |
"leading_diamond": "\ue0b6", | |
"properties": { | |
"style": "austin", | |
"template": "{{ .FormattedMs }}", | |
"threshold": 150 | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4 ", | |
"type": "executiontime" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#7FD5EA", | |
"leading_diamond": "\ue0b6", | |
"properties": { | |
"template": "\u276f" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"final_space": true, | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment