Created
May 9, 2023 06:01
-
-
Save SuperRembo/4e000e3080dd2edd53751d1eae02623e to your computer and use it in GitHub Desktop.
OhMyPosh 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", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#d3d7cf", | |
"foreground": "#000000", | |
"style": "diamond", | |
"template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} \u2800", | |
"type": "os" | |
}, | |
{ | |
"background": "#3465a4", | |
"foreground": "#e4e4e4", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"home_icon": "~", | |
"style": "full" | |
}, | |
"style": "powerline", | |
"template": " \uf07c {{ .Path }} ", | |
"type": "path" | |
}, | |
{ | |
"background": "#4e9a06", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#c4a000{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f26d50{{ end }}", | |
"{{ if gt .Ahead 0 }}#89d1dc{{ end }}", | |
"{{ if gt .Behind 0 }}#4e9a06{{ end }}" | |
], | |
"foreground": "#000000", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"branch_icon": "\uf126 ", | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "powerline", | |
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} \uf692 {{ .StashCount }}{{ end }} ", | |
"type": "git" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"background": "#FEAC19", | |
"foreground": "#ffffff", | |
"invert_powerline": true, | |
"powerline_symbol": "\ue0b2", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": false | |
}, | |
"style": "powerline", | |
"template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} \uf0e7", | |
"type": "azfunc" | |
}, | |
{ | |
"background": "#ffff66", | |
"foreground": "#111111", | |
"invert_powerline": true, | |
"powerline_symbol": "\ue0b2", | |
"style": "powerline", | |
"template": " \uf0ad ", | |
"type": "root" | |
}, | |
{ | |
"background": "#c4a000", | |
"foreground": "#000000", | |
"invert_powerline": true, | |
"powerline_symbol": "\ue0b2", | |
"style": "powerline", | |
"template": " {{ .FormattedMs }} \uf252 ", | |
"type": "executiontime" | |
}, | |
{ | |
"background": "#000000", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}#cc2222{{ end }}" | |
], | |
"foreground": "#d3d7cf", | |
"invert_powerline": true, | |
"powerline_symbol": "\ue0b2", | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "powerline", | |
"template": " {{ if gt .Code 0 }}{{ .Meaning }}{{ else }}\u2714{{ end }} ", | |
"type": "exit" | |
}, | |
{ | |
"background": "#d3d7cf", | |
"foreground": "#000000", | |
"invert_powerline": true, | |
"style": "diamond", | |
"template": " {{ .CurrentDate | date .Format }} \uf017 \u2800", | |
"type": "time" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#d3d7cf", | |
"style": "plain", | |
"template": "\u276f", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"console_title_template": "{{ .Shell }} - {{ .Folder }}", | |
"final_space": true, | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment