Skip to content

Instantly share code, notes, and snippets.

@bradygaster
Last active May 20, 2024 00:45
Show Gist options
  • Save bradygaster/7471c2d3f07123e00be86fb45fa6f12a to your computer and use it in GitHub Desktop.
Save bradygaster/7471c2d3f07123e00be86fb45fa6f12a to your computer and use it in GitHub Desktop.
bradyg's posh git profile
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#0a529d",
"foreground": "#ccc",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \uf0e7 ",
"type": "root"
},
{
"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"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#3b1399",
"foreground": "#ccc",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " \uf0e7 ",
"type": "root"
},
{
"background": "#3b1399",
"foreground": "#ccc",
"powerline_symbol": "\ue0c6",
"properties": {
"time_format": "15:04:05"
},
"style": "powerline",
"template": " {{ .CurrentDate | date .Format }} \uf64f ",
"type": "time"
},
{
"background": "#3b1399",
"foreground": "#ccc",
"powerline_symbol": "\ue0c6",
"style": "powerline",
"template": "{{ .UserName }}@{{ .HostName }} ",
"type": "session"
},
{
"background": "#36363a",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#e5b55f{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ad10a5{{ end }}",
"{{ if gt .Ahead 0 }}#B388FF{{ end }}",
"{{ if gt .Behind 0 }}#B388FF{{ end }}"
],
"foreground": "#79ce87",
"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": "#36363a",
"foreground": "#ccc",
"powerline_symbol": "\ue0b0",
"properties": {
"folder_icon": "\uf115 ",
"folder_separator_icon": " \ue0b1 ",
"home_icon": "\ueb06",
"style": "agnoster"
},
"style": "powerline",
"template": " {{ .Path }} ",
"type": "path"
},
{
"background": "#ff8080",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"style": "powerline",
"template": " {{ reason .Code }} ",
"type": "status"
}
],
"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