Last active
September 23, 2023 15:52
-
-
Save matt-winfield/bbe938bf41dc7fceab01d26243d281f9 to your computer and use it in GitHub Desktop.
My oh-my-posh theme
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", | |
"pwd": "osc99", | |
"version": 2, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "text", | |
"style": "plain", | |
"foreground": "#0077c2", | |
"template": "\u256d\u2500" | |
}, | |
{ | |
"type": "path", | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b0", | |
"foreground": "#2d3436", | |
"background": "#FF9248", | |
"template": "\uf07b {{ .Path }} ", | |
"properties": { | |
"folder_icon": " \uf07b ", | |
"style": "mixed" | |
} | |
}, | |
{ | |
"type": "root", | |
"style": "diamond", | |
"trailing_diamond": "\ue0b0", | |
"foreground": "#FFFB38", | |
"background": "#ef5350", | |
"template": " \uf292 " | |
}, | |
{ | |
"type": "executiontime", | |
"style": "diamond", | |
"foreground": "#ffffff", | |
"background": "#83769c", | |
"trailing_diamond": "\ue0b4", | |
"template": " {{ .FormattedMs }}", | |
"properties": { | |
"style": "roundrock", | |
"threshold": 0 | |
} | |
} | |
] | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "right", | |
"segments": [ | |
{ | |
"type": "time", | |
"style": "diamond", | |
"invert_powerline": true, | |
"foreground": "#ffffff", | |
"background": "#40c4ff", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": " \uf073 {{ .CurrentDate | date .Format }} ", | |
"properties": { | |
"time_format": "Mon _2,3:04 PM" | |
} | |
} | |
] | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"type": "git", | |
"style": "diamond", | |
"leading_diamond": "<#0077c2, parentBackground>\u2502</> \ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"foreground": "#011627", | |
"background": "#38c0ff", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}", | |
"{{ if gt .Ahead 0 }}#C792EA{{ end }}", | |
"{{ if gt .Behind 0 }}#C792EA{{ end }}" | |
], | |
"template": " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#ef5350> \uf046 {{ .Staging.String }}</>{{ end }} ", | |
"properties": { | |
"branch_icon": "\ue725 ", | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
} | |
} | |
] | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "text", | |
"style": "plain", | |
"foreground": "#0077c2", | |
"template": "\u2570\u2500" | |
}, | |
{ | |
"type": "exit", | |
"style": "plain", | |
"foreground": "#e0f8ff", | |
"foreground_templates": [ | |
"{{ if gt .Code 0 }}#ef5350{{ end }}" | |
], | |
"template": "\ue285 ", | |
"properties": { | |
"always_enabled": true | |
} | |
} | |
], | |
"newline": true | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment