Created
May 16, 2025 12:48
-
-
Save rmpel/4ba8d82e101c0c93abb1624b170f448a to your computer and use it in GitHub Desktop.
My OhMyPosh config
This file contains hidden or 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", | |
"palette": { | |
"black": "#262B44", | |
"blue": "#4B95E9", | |
"green": "#59C9A5", | |
"orange": "#F07623", | |
"red": "#D81E5B", | |
"white": "#E0DEF4", | |
"yellow": "#F3AE35" | |
}, | |
"secondary_prompt": { | |
"template": "<p:yellow,transparent>\ue0b6</><,p:yellow> > </><p:yellow,transparent>\ue0b0</> ", | |
"foreground": "p:black", | |
"background": "transparent" | |
}, | |
"transient_prompt": { | |
"template": "<p:yellow,transparent>\ue0b6{{ if matchP \"local-by-flywheel\" .Env.WP_ENV }}\ue0b0</><p:blue> \uf4bf {{ .Env.LOCALWP_SITE }} </><transparent,p:yellow>\ue0b0</><,p:yellow>{{ end }}</><p:black,p:yellow> {{ .Folder }} </><p:yellow,transparent>\ue0b0</> ", | |
"foreground": "p:black", | |
"background": "transparent" | |
}, | |
"console_title_template": "{{ .Shell }} in {{ .Folder }}", | |
"upgrade": { | |
"source": "cdn", | |
"interval": "168h", | |
"auto": false, | |
"notice": false | |
}, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b0", | |
"template": " {{ if .SSHSession }}\ueba9 {{ end }}{{ .UserName }} ", | |
"foreground": "p:black", | |
"background": "p:yellow", | |
"type": "session", | |
"style": "diamond" | |
}, | |
{ | |
"type": "executiontime", | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#ffffff", | |
"background": "#8800dd", | |
"template": "{{ if gt .Ms 3000 }} <#fefefe>\ueba2</> {{ .FormattedMs }}{{ end }} ", | |
"properties": { | |
"threshold": 500, | |
"style": "austin", | |
"always_enabled": true | |
} | |
}, | |
{ | |
"type": "php", | |
"template": "{{ if matchP \"local-by-flywheel\" .Env.WP_ENV }} \uf4bf {{ .Env.LOCALWP_SITE }} ({{ .Env.LOCALWP_SITE_ID }}) {{ end }}", | |
"foreground": "p:blue", | |
"background": "transparent" | |
}, | |
{ | |
"type": "php", | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#ffffff", | |
"background": "#4063D8", | |
"template": " \ue73d {{ .Full }} " | |
}, | |
{ | |
"type": "node", | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#ffffff", | |
"background": "#6CA35E", | |
"template": " \ue718 {{ .Full }} " | |
}, | |
{ | |
"properties": { | |
"style": "folder" | |
}, | |
"template": " \uea83 {{ path .Path .Location }} ", | |
"foreground": "p:white", | |
"powerline_symbol": "\ue0b0", | |
"background": "p:orange", | |
"type": "path", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"branch_template": "{{ trunc 25 .Branch }}", | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", | |
"foreground": "p:black", | |
"powerline_symbol": "\ue0b0", | |
"background": "p:green", | |
"type": "git", | |
"style": "powerline", | |
"foreground_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:black{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:white{{ end }}", | |
"{{ if gt .Ahead 0 }}p:white{{ end }}" | |
], | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:yellow{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:red{{ end }}", | |
"{{ if gt .Ahead 0 }}#49416D{{ end }}", | |
"{{ if gt .Behind 0 }}#7A306C{{ end }}" | |
] | |
}, | |
{ | |
"template": " \uf0e7 ", | |
"foreground": "p:white", | |
"powerline_symbol": "\ue0b0", | |
"background": "p:yellow", | |
"type": "root", | |
"style": "powerline" | |
}, | |
{ | |
"properties": { | |
"always_enabled": true | |
}, | |
"leading_diamond": "<transparent,background>\ue0b0</>", | |
"trailing_diamond": "\ue0b4", | |
"template": " {{ if gt .Code 0 }}\uf00d{{ else }}\uf00c{{ end }} ", | |
"foreground": "p:white", | |
"background": "p:blue", | |
"type": "status", | |
"style": "diamond", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}p:red{{ end }}" | |
] | |
} | |
] | |
}, | |
{ | |
"type": "rprompt", | |
"segments": [ | |
{ | |
"properties": { | |
"display_mode": "files", | |
"fetch_package_manager": false, | |
"home_enabled": false | |
}, | |
"template": "\ue718 ", | |
"foreground": "p:green", | |
"background": "transparent", | |
"type": "node", | |
"style": "plain" | |
}, | |
{ | |
"properties": { | |
"fetch_version": false | |
}, | |
"template": "\ue626 ", | |
"foreground": "p:blue", | |
"background": "transparent", | |
"type": "go", | |
"style": "plain" | |
}, | |
{ | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": false, | |
"fetch_virtual_env": false | |
}, | |
"template": "\ue235 ", | |
"foreground": "p:yellow", | |
"background": "transparent", | |
"type": "python", | |
"style": "plain" | |
}, | |
{ | |
"template": "on <p:blue><b>{{ .CurrentDate | date \"02-01-2006 15:04:05\" }}</b></>", | |
"foreground": "p:white", | |
"background": "transparent", | |
"type": "time", | |
"style": "plain" | |
} | |
] | |
} | |
], | |
"disabled_segments":[ | |
{ | |
"template": "in <p:blue><b>{{ .Name }}</b></> ", | |
"foreground": "p:white", | |
"background": "transparent", | |
"type": "shell", | |
"style": "plain" | |
} | |
], | |
"tooltips": [ | |
{ | |
"properties": { | |
"display_default": true | |
}, | |
"leading_diamond": "\ue0b0", | |
"trailing_diamond": "\ue0b4", | |
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", | |
"foreground": "p:white", | |
"background": "p:orange", | |
"type": "aws", | |
"style": "diamond", | |
"tips": [ | |
"aws" | |
] | |
}, | |
{ | |
"properties": { | |
"display_default": true | |
}, | |
"leading_diamond": "\ue0b0", | |
"trailing_diamond": "\ue0b4", | |
"template": " \uebd8 {{ .Name }} ", | |
"foreground": "p:white", | |
"background": "p:blue", | |
"type": "az", | |
"style": "diamond", | |
"tips": [ | |
"az" | |
] | |
}, | |
{ | |
"type": "git", | |
"tips": [ | |
"git", | |
"g" | |
], | |
"style": "diamond", | |
"foreground": "#193549", | |
"background": "#fffb38", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4", | |
"template": "{{ .HEAD }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}", | |
"properties": { | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
} | |
} | |
], | |
"version": 3, | |
"final_space": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment