Last active
October 12, 2024 21:47
-
-
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", | |
"type": "prompt", | |
"segments": [ | |
{ | |
"background": "#0078d4", | |
"foreground": "#ccc", | |
"powerline_symbol": "\ue0c6", | |
"style": "powerline", | |
"template": " \uebd8 {{ .Name }} ({{ if .EnvironmentName | contains \"AzureCloud\" }}{{ \"Global\" }}{{ else }}{{ .EnvironmentName }}{{ end }}) ", | |
"type": "az" | |
}, | |
{ | |
"background": "#8f43f3", | |
"foreground": "#ccc", | |
"style": "powerline", | |
"powerline_symbol": "\ue0c6", | |
"template": " \ue77f {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", | |
"type": "dotnet" | |
}, | |
{ | |
"background": "#0a529d", | |
"foreground": "#ccc", | |
"style": "powerline", | |
"powerline_symbol": "\ue0c6", | |
"template": " \uf308 {{.Context}} cluster {{if .Namespace}}- {{.Namespace}} namespace{{end}}", | |
"type": "kubectl" | |
} | |
] | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"type": "prompt", | |
"segments": [ | |
{ | |
"background": "#ffe9aa", | |
"foreground": "#100e23", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \uf0e7 ", | |
"type": "root" | |
}, | |
{ | |
"background": "#ffffff", | |
"foreground": "#100e23", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " {{ .UserName }}@{{ .HostName }} ", | |
"type": "session" | |
}, | |
{ | |
"background": "#91ddff", | |
"foreground": "#100e23", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"folder_icon": "\uf115", | |
"folder_separator_icon": " \ue0b1 ", | |
"home_icon": "\ueb06", | |
"style": "agnoster" | |
}, | |
"style": "powerline", | |
"template": " {{ .Path }} ", | |
"type": "path" | |
}, | |
{ | |
"background": "#95ffa4", | |
"foreground": "#193549", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#e2cd0f{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ad10a5{{ end }}", | |
"{{ if gt .Ahead 0 }}#e2cd0f{{ end }}", | |
"{{ if gt .Behind 0 }}#e2cd0f{{ end }}" | |
], | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "powerline", | |
"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 }} \ueb4b {{ .StashCount }}{{ end }}", | |
"type": "git" | |
}, | |
{ | |
"background": "#906cff", | |
"foreground": "#100e23", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", | |
"type": "python" | |
}, | |
{ | |
"background": "#ff8080", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " {{ reason .Code }} ", | |
"type": "status" | |
} | |
] | |
} | |
], | |
"final_space": true, | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment