Created
February 17, 2023 00:13
-
-
Save sgoley/c8db5786c04de01b0c1ced229233af3c to your computer and use it in GitHub Desktop.
ohmyposh theme update w/ python segment
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": "left", | |
"segments": [ | |
{ | |
"type": "text", | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"foreground": "#ffffff", | |
"background": "#cc3802", | |
"template": "{{ if .Env.PNPPSHOST }} \uf8c5 {{ .Env.PNPPSHOST }} {{ end }}" | |
}, | |
{ | |
"type": "text", | |
"style": "powerline", | |
"foreground": "#ffffff", | |
"background": "#047e84", | |
"powerline_symbol": "\ue0b0", | |
"template": "{{ if .Env.PNPPSSITE }} \uf672 {{ .Env.PNPPSSITE }}{{ end }}" | |
}, | |
{ | |
"type": "text", | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"foreground": "#ffffff", | |
"background": "#047e84", | |
"template": "{{ if .Env.PNPPSSITE }}\u00A0{{ end }}" | |
} | |
], | |
"type": "rprompt" | |
}, | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#9A348E", | |
"foreground": "#ffffff", | |
"leading_diamond": "\ue0b6", | |
"style": "diamond", | |
"template": "{{ .UserName }} ", | |
"type": "session" | |
}, | |
{ | |
"background": "#DA627D", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"style": "folder" | |
}, | |
"style": "powerline", | |
"template": " {{ .Path }} ", | |
"type": "path" | |
}, | |
{ | |
"background": "#ff9b74", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"branch_icon": "", | |
"fetch_stash_count": true, | |
"fetch_status": false, | |
"fetch_upstream_icon": true | |
}, | |
"style": "powerline", | |
"template": " \u279c ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }}) ", | |
"type": "git" | |
}, | |
{ | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"properties": { | |
"fetch_version": false, | |
"fetch_virtual_env": true, | |
"home_enabled": true, | |
"display_default": true, | |
"display_virtual_env": true, | |
"display_mode": "environment" | |
}, | |
"foreground": "#ffffff", | |
"background": "#5bb662", | |
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", | |
"type": "python" | |
}, | |
{ | |
"background": "#86BBD8", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", | |
"type": "node" | |
}, | |
{ | |
"background": "#33658A", | |
"foreground": "#ffffff", | |
"properties": { | |
"time_format": "15:04" | |
}, | |
"style": "diamond", | |
"template": " \u2665 {{ .CurrentDate | date .Format }} ", | |
"trailing_diamond": "\ue0b0", | |
"type": "time" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"final_space": true, | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment