Last active
March 18, 2022 01:27
-
-
Save yapkhaichuen/d3b95e75328d51d7bc65832b182058e9 to your computer and use it in GitHub Desktop.
Custom theme for ohmyposh
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": [ | |
{ | |
"background": "#ff479c", | |
"foreground": "#ffffff", | |
"leading_diamond": "\ue0b6", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"style": "folder", | |
"template": " \ue5ff {{ .Path }} " | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b0", | |
"type": "path" | |
}, | |
{ | |
"background": "#fffb38", | |
"foreground": "#193549", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true, | |
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "git" | |
}, | |
{ | |
"background": "#6CA35E", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_version": true, | |
"template": " \ue70c {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "dotnet" | |
}, | |
{ | |
"type": "python", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#100e23", | |
"background": "#906cff", | |
"properties": { | |
"prefix": " \uE235 " | |
} | |
}, | |
{ | |
"background": "#ffd300", | |
"foreground": "#333333", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"template": " \uf0e7 " | |
}, | |
"style": "powerline", | |
"type": "root" | |
}, | |
{ | |
"background": "#2e9599", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}#f1184c{{ end }}" | |
], | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"always_enabled": true, | |
"template": " \ue23a " | |
}, | |
"style": "powerline", | |
"trailing_diamond": "\ue0b4", | |
"type": "exit" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"console_title": true, | |
"console_title_style": "folder", | |
"final_space": true, | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment