Last active
July 23, 2025 13:45
-
-
Save tomjemmett/8b4b2e02715aec9231e18283e165ab00 to your computer and use it in GitHub Desktop.
my oh my posh theme
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", | |
| "version": 2, | |
| "final_space": true, | |
| "blocks": [ | |
| { | |
| "type": "prompt", | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "type": "os", | |
| "style": "diamond", | |
| "foreground": "#f8f8f2", | |
| "background": "#6272a4", | |
| "leading_diamond": "", | |
| "properties": { | |
| "windows": "" | |
| }, | |
| "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}}" | |
| }, | |
| { | |
| "type": "text", | |
| "style": "powerline", | |
| "foreground": "#f8f8f2", | |
| "background": "#6272a4", | |
| "powerline_symbol": "", | |
| "template": " {{ .HostName }} " | |
| }, | |
| { | |
| "type": "path", | |
| "style": "powerline", | |
| "foreground": "#282a36", | |
| "background": "#bd93f9", | |
| "powerline_symbol": "", | |
| "properties": { | |
| "folder_separator_icon": " ", | |
| "home_icon": "~", | |
| "style": "folder" | |
| }, | |
| "template": " {{ .Path }} " | |
| }, | |
| { | |
| "type": "git", | |
| "style": "powerline", | |
| "foreground": "#282a36", | |
| "background": "#44475a", | |
| "powerline_symbol": "", | |
| "background_templates": [ | |
| "{{ if or (.Working.Changed) (.Staging.Changed) }}#ffb86c{{ end }}", | |
| "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", | |
| "{{ if gt .Ahead 0 }}#50fa7b{{ end }}", | |
| "{{ if gt .Behind 0 }}#ff79c6{{ end }}" | |
| ], | |
| "properties": { | |
| "branch_max_length": 25, | |
| "fetch_stash_count": true, | |
| "fetch_status": true, | |
| "fetch_upstream_icon": true | |
| }, | |
| "template": " {{ .UpstreamIcon }} {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }} {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }} {{ .StashCount }}{{ end }} " | |
| }, | |
| { | |
| "type": "executiontime", | |
| "style": "powerline", | |
| "foreground": "#f8f8f2", | |
| "background": "#6272a4", | |
| "powerline_symbol": "", | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "template": " ﮫ {{ .FormattedMs }} " | |
| }, | |
| { | |
| "type": "exit", | |
| "style": "diamond", | |
| "foreground": "#6272a4", | |
| "background": "#f8f8f2", | |
| "background_templates": [ | |
| "{{ if gt .Code 0 }}#ff5555{{ end }}" | |
| ], | |
| "trailing_diamond": "", | |
| "template": " {{ if gt .Code 0 }} {{ .Meaning }}{{ else }}{{ end }}", | |
| "properties": { | |
| "always_enabled": true | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "alignment": "right", | |
| "overflow": "break", | |
| "segments": [ | |
| { | |
| "type": "text", | |
| "style": "diamond", | |
| "foreground": "#f8f8f2", | |
| "background": "#6272a4", | |
| "leading_diamond": "", | |
| "template": "" | |
| }, | |
| { | |
| "type": "shell", | |
| "style": "powerline", | |
| "foreground": "#f8f8f2", | |
| "background": "#6272a4", | |
| "invert_powerline": true, | |
| "powerline_symbol": "", | |
| "template": "{{ .Name }} " | |
| }, | |
| { | |
| "type": "haskell", | |
| "style": "powerline", | |
| "foreground": "#906cff", | |
| "background": "#f8f8f2", | |
| "invert_powerline": true, | |
| "powerline_symbol": "", | |
| "template": "{{ .Name }} " | |
| }, | |
| { | |
| "type": "haskell", | |
| "style": "powerline", | |
| "foreground": "#906cff", | |
| "background": "#f8f8f2", | |
| "invert_powerline": true, | |
| "powerline_symbol": "", | |
| "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
| }, | |
| { | |
| "type": "python", | |
| "style": "powerline", | |
| "foreground": "#FFE873", | |
| "background": "#306998", | |
| "invert_powerline": true, | |
| "powerline_symbol": "", | |
| "template": " {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} " | |
| }, | |
| { | |
| "type": "r", | |
| "style": "powerline", | |
| "foreground": "#282a36", | |
| "background": "#8be9fd", | |
| "invert_powerline": true, | |
| "powerline_symbol": "", | |
| "template": " R {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
| }, | |
| { | |
| "type": "time", | |
| "style": "diamond", | |
| "foreground": "#f8f8f2", | |
| "background": "#bd93f9", | |
| "invert_powerline": true, | |
| "trailing_diamond": "", | |
| "properties": { | |
| "time_format": "15:04:05" | |
| }, | |
| "template": " {{ .CurrentDate | date .Format }} " | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#6272a4", | |
| "style": "plain", | |
| "template": "╰─", | |
| "type": "text" | |
| }, | |
| { | |
| "foreground": "#6272a4", | |
| "foreground_templates": [ | |
| "{{ if gt .Code 0 }}#ef5350{{ end }}" | |
| ], | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "style": "plain", | |
| "template": "", | |
| "type": "exit" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment