Created
November 20, 2023 13:54
-
-
Save SLAVONchick/f0370b957f8ab0abb9627248dd487b56 to your computer and use it in GitHub Desktop.
Theme for oh-my-posh
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": "#2b3589", | |
"foreground": "#ffffff", | |
// "leading_diamond": "\ue0b6", | |
"leading_diamond": "\u256d\u2500\ue0b6", | |
"style": "diamond", | |
"template": " {{ .Env.OS_GLYPH }} {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }}@{{ .HostName }} ", | |
"trailing_diamond": "\ue0b0", | |
"type": "session" | |
}, | |
{ | |
"background": "#1c6c2c", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"style": "folder" | |
}, | |
"style": "powerline", | |
"template": " \ue5ff {{ .Location }} ", | |
"type": "path" | |
}, | |
{ | |
"background": "#fffb38", | |
"foreground": "#193549", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "powerline", | |
"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 }} ", | |
"type": "git" | |
}, | |
{ | |
"template": "{{ if .Env.OS_GLYPH }}{{ else }} NOT SET \"OS_GLYPH\" ENVIRONMENT VARIABLE {{ end }}", | |
"background": "#ff0000", | |
"foreground": "#000000", | |
"type": "text", | |
"style": "powerline" | |
}, | |
{ | |
"background": "#906cff", | |
"foreground": "#100e23", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", | |
"type": "python" | |
}, | |
{ | |
"background": "#4a27b3", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", | |
"type": "dotnet" | |
}, | |
{ | |
"type": "haskell", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"background": "#690061", | |
"foreground": "#ffffff", | |
"template": " \ue61f {{ .Full }}", | |
"properties": { | |
"display_mode": "files", | |
"stack_ghc_mode": "package" | |
} | |
}, | |
{ | |
"background": "#6CA35E", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", | |
"type": "node" | |
}, | |
{ | |
"background": "#0077c2", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \udb82\ude0a {{ .Name }} {{ .Version }} ", | |
"type": "shell" | |
}, | |
{ | |
"background": "#ff0000", | |
"foreground": "#193549", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \uf0e7 ADMIN \uf0e7 ", | |
"type": "root" | |
}, | |
{ | |
"type": "executiontime", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"foreground": "#000000", | |
"background": "#929292", | |
"template": " <#fefefe></> {{ .FormattedMs }} ", | |
"properties": { | |
"threshold": 500, | |
"style": "austin", | |
"always_enabled": true | |
} | |
}, | |
{ | |
"background": "#2e9599", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}#f1184c{{ end }}" | |
], | |
"foreground": "#ffffff", | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "diamond", | |
"template": " \ue23a{{ if gt .Code 0 }}\uf00d{{ else }}\uf42e{{ end }} ", | |
"trailing_diamond": "\ue0b4", | |
"type": "shell" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#2b3589", | |
"style": "plain", | |
"template": "\u2570\u2500", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#6d78d9", | |
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"], | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "plain", | |
"template": "\ue285\ueab6", | |
"type": "shell" | |
} | |
], | |
"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