Created
November 24, 2023 09:27
-
-
Save clarkey/5ce6414491266a5b3ab9279a42426a38 to your computer and use it in GitHub Desktop.
MC OhMyPosh 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", | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"foreground": "white", | |
"properties": { | |
"fetch_version": false | |
}, | |
"style": "plain", | |
"template": "({{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }})", | |
"type": "python" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "lightBlue", | |
"style": "plain", | |
"template": "# ", | |
"type": "text" | |
}, | |
{ | |
"foreground": "red", | |
"style": "plain", | |
"template": " % ", | |
"type": "root" | |
}, | |
{ | |
"foreground": "lightYellow", | |
"properties": { | |
"style": "full" | |
}, | |
"style": "plain", | |
"template": "</>{{ .Path }} ", | |
"type": "path" | |
}, | |
{ | |
"foreground": "#F3C267", | |
"foreground_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", | |
"{{ if gt .Ahead 0 }}#B388FF{{ end }}", | |
"{{ if gt .Behind 0 }}#B388FF{{ end }}" | |
], | |
"properties": { | |
"branch_max_length": 25, | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "plain", | |
"template": "<darkGray>on</> {{ .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" | |
}, | |
{ | |
"properties": { | |
"branch_icon": "", | |
"fetch_stash_count": true | |
}, | |
"style": "plain", | |
"template": "<#ffffff>on</> {{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ", | |
"type": "git" | |
}, | |
{ | |
"foreground": "#906cff", | |
"style": "powerline", | |
"template": "[\ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }}] ", | |
"type": "python" | |
}, | |
{ | |
"foreground": "#7FD5EA", | |
"style": "powerline", | |
"template": "[\ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ", | |
"type": "go" | |
}, | |
{ | |
"foreground": "#76b367", | |
"style": "powerline", | |
"template": "[\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}] ", | |
"type": "node" | |
}, | |
{ | |
"foreground": "#f44336", | |
"style": "powerline", | |
"template": "[\ue791{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ", | |
"type": "ruby" | |
}, | |
{ | |
"foreground": "#ea2d2e", | |
"style": "powerline", | |
"template": "[\ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}] ", | |
"type": "java" | |
}, | |
{ | |
"foreground": "#4063D8", | |
"style": "powerline", | |
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
"type": "julia" | |
}, | |
{ | |
"foreground": "darkGray", | |
"style": "plain", | |
"template": "[{{ .CurrentDate | date .Format }}]", | |
"type": "time" | |
}, | |
{ | |
"foreground": "red", | |
"style": "plain", | |
"template": " C:{{ if gt .Code 0 }}{{ .Code }}{{ end }} ", | |
"type": "status" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "lightRed", | |
"style": "plain", | |
"template": "$", | |
"type": "text" | |
} | |
], | |
"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