Created
January 17, 2023 16:26
-
-
Save brian-pickens/2f7ce11bf8dca8a0e27352bcf466b650 to your computer and use it in GitHub Desktop.
Oh My Posh Themes
This file contains hidden or 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": "#073642", | |
"foreground": "#2aa198", | |
"leading_diamond": "\ue0b6", | |
"properties": { | |
"style": "mixed" | |
}, | |
"style": "diamond", | |
"template": "\ue5ff {{ .Path }}", | |
"trailing_diamond": "\ue0b4", | |
"type": "path" | |
}, | |
{ | |
"background": "#073642", | |
"foreground": "#2aa198", | |
"foreground_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}##b58900{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", | |
"{{ if gt .Ahead 0 }}#268bd2{{ end }}", | |
"{{ if gt .Behind 0 }}#268bd2{{ end }}" | |
], | |
"leading_diamond": " \ue0b6", | |
"properties": { | |
"branch_max_length": 25, | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "diamond", | |
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ 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 }} ", | |
"trailing_diamond": "\ue0b4", | |
"type": "git" | |
}, | |
{ | |
"foreground": "#dc322f", | |
"style": "plain", | |
"template": "x ", | |
"type": "exit" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"powerline_symbol": "\uE0B0", | |
"background": "#073642", | |
"foreground": "#268bd2", | |
"template": "\uFD03 {{ .Name }}", | |
"type": "az" | |
}, | |
{ | |
"background": "#073642", | |
"foreground": "#268bd2", | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": "\ufd31 {{.Context}} :: {{if .Namespace}}{{.Namespace}}{{else}}default{{end}} ", | |
"type": "kubectl" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#93a1a1", | |
"style": "plain", | |
"template": "\u279c ", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment