Last active
September 29, 2023 02:58
-
-
Save bradygaster/7471c2d3f07123e00be86fb45fa6f12a to your computer and use it in GitHub Desktop.
bradyg's posh git profile
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": [ | |
{ | |
"foreground": "#ffffff", | |
"style": "plain", | |
"template": "\u256d\u2500", | |
"type": "text" | |
}, | |
{ | |
"background": "#0062ad", | |
"foreground": "#ffffff", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b0", | |
"properties": { | |
"windows": "\uf871" | |
}, | |
"style": "diamond", | |
"template": " \ufd03 {{ .Name }} ({{ if .EnvironmentName | contains \"AzureCloud\" }}{{ \"Global\" }}{{ else }}{{ .EnvironmentName }}{{ end }}) ", | |
"type": "az" | |
}, | |
{ | |
"background": "#8f43f3", | |
"foreground": "#ffffff", | |
"leading_diamond": "<transparent,#8f43f3>\ue0b0</>", | |
"style": "diamond", | |
"template": "\ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", | |
"trailing_diamond": "\ue0b0", | |
"type": "dotnet" | |
}, | |
{ | |
"background": "#316ce4", | |
"foreground": "#ffffff", | |
"leading_diamond": "<transparent,#316ce4>\ue0b0</>", | |
"style": "diamond", | |
"trailing_diamond": "\ue0c6 ", | |
"template": "\ufd31 {{.Context}} :: {{if .Namespace}}{{.Namespace}}{{else}}default{{end}} ", | |
"type": "kubectl" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"type": "prompt", | |
"segments": [ | |
{ | |
"foreground": "#ffffff", | |
"style": "plain", | |
"template": "\u253d\u2500", | |
"type": "text" | |
}, | |
{ | |
"background": "#8f43f3", | |
"foreground": "#ffffff", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b0", | |
"properties": { | |
"time_format": "15:04:05" | |
}, | |
"style": "diamond", | |
"template": "\uf64f {{ .CurrentDate | date .Format }}", | |
"type": "time" | |
}, | |
{ | |
"background": "#ef5350", | |
"foreground": "#ffeb95", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \uf292 ", | |
"type": "root" | |
}, | |
{ | |
"background": "#575656", | |
"foreground": "#d6deeb", | |
"leading_diamond": "<transparent,#575656>\ue0b0</>", | |
"trailing_diamond": "\ue0b0", | |
"properties": { | |
"style": "roundrock", | |
"threshold": 0 | |
}, | |
"style": "diamond", | |
"template": " {{ .FormattedMs }}", | |
"type": "executiontime" | |
}, | |
{ | |
"background": "#8f43f3", | |
"foreground": "#ffffff", | |
"leading_diamond": "<transparent,#8f43f3>\ue0b0</>", | |
"trailing_diamond": "\ue0b0", | |
"style": "diamond", | |
"template": "\uf85a {{ round .PhysicalPercentUsed .Precision }}% ", | |
"type": "sysinfo" | |
}, | |
{ | |
"background": "#82AAFF", | |
"foreground": "#011627", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"folder_icon": "\uf07c ", | |
"folder_separator_icon": "<#011627>\ue0b1</> ", | |
"home_icon": " \uf7db ", | |
"style": "agnoster" | |
}, | |
"style": "powerline", | |
"template": "{{ path .Path .Location }}", | |
"type": "path" | |
}, | |
{ | |
"background": "#addb67", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#e4cf6a{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f78c6c{{ end }}", | |
"{{ if gt .Ahead 0 }}#C792EA{{ end }}", | |
"{{ if gt .Behind 0 }}#c792ea{{ end }}" | |
], | |
"foreground": "#011627", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"branch_icon": "\ue725 ", | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true, | |
"fetch_worktree_count": true | |
}, | |
"style": "diamond", | |
"leading_diamond": "<transparent,#addb67>\ue0b0</>", | |
"trailing_diamond": "\ue0c6 ", | |
"template": " {{ url .UpstreamIcon .UpstreamURL }}{{ .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 }} ", | |
"type": "git" | |
} | |
] | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#ffffff", | |
"style": "plain", | |
"template": "\u2570\u2500", | |
"type": "text" | |
}, | |
{ | |
"background": "#1DB954", | |
"foreground": "#011627", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b0", | |
"properties": { | |
"playing_icon": "\uf1bc " | |
}, | |
"style": "diamond", | |
"type": "spotify" | |
}, | |
{ | |
"foreground": "#22da6e", | |
"foreground_templates": ["{{ if gt .Code 0 }}#ef5350{{ end }}"], | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "plain", | |
"template": "\ue285\ue285", | |
"type": "exit" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"console_title_template": "{{ .Folder }}", | |
"final_space": true, | |
"transient_prompt": { | |
"background": "transparent", | |
"foreground": "#d6deeb", | |
"template": "\ue285 " | |
}, | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment