Last active
August 30, 2022 13:04
-
-
Save cdhunt/02b0c9ca74bef31a18833440256af0df to your computer and use it in GitHub Desktop.
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", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "background": "#26C6DA", | |
| "foreground": "#011627", | |
| "leading_diamond": "\u256d\u2500\ue0b6", | |
| "properties": { | |
| "windows": "\uf871" | |
| }, | |
| "style": "diamond", | |
| "template": " {{ if .WSL }}WSL at {{ end }}{{.Icon}} ", | |
| "trailing_diamond": "\ue0b0", | |
| "type": "os" | |
| }, | |
| { | |
| "background": "#ef5350", | |
| "foreground": "#ffeb95", | |
| "leading_diamond": "<transparent,#ef5350>\ue0b0</>", | |
| "style": "diamond", | |
| "template": " \uf292 ", | |
| "trailing_diamond": "\ue0b0", | |
| "type": "root" | |
| }, | |
| { | |
| "background": "#F8B682", | |
| "foreground": "#011627", | |
| "leading_diamond": "<transparent,#F8B682>\ue0b0</>", | |
| "properties": { | |
| "folder_separator_icon": " <#011627>\ue0b1</> ", | |
| "home_icon": "\uf7db ", | |
| "style": "mixed", | |
| "mixed_threshold": 5 | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .Path }} ", | |
| "trailing_diamond": "\ue0b0", | |
| "type": "path" | |
| }, | |
| { | |
| "background": "#ffeb3b", | |
| "background_templates": [ | |
| "{{ if or (.Working.Changed) (.Staging.Changed) }}#addb67{{ end }}", | |
| "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#f78c6c{{ end }}", | |
| "{{ if gt .Ahead 0 }}#26C6DA{{ end }}", | |
| "{{ if gt .Behind 0 }}#c792ea{{ end }}" | |
| ], | |
| "foreground": "#011627", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "branch_icon": "\ue725 ", | |
| "fetch_stash_count": true, | |
| "fetch_status": true, | |
| "fetch_upstream_icon": true, | |
| "fetch_worktree_count": true | |
| }, | |
| "style": "powerline", | |
| "template": " {{ .UpstreamIcon }}{{ .HEAD }}{{ .BranchStatus }}{{ 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 }} \uf692 {{ .StashCount }}{{ end }} ", | |
| "type": "git" | |
| }, | |
| { | |
| "background": "#575656", | |
| "foreground": "#d6deeb", | |
| "leading_diamond": "<transparent,#575656>\ue0b0</>", | |
| "properties": { | |
| "style": "roundrock", | |
| "threshold": 0 | |
| }, | |
| "style": "diamond", | |
| "template": " {{ .FormattedMs }} ", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "executiontime" | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "right", | |
| "segments": [ | |
| { | |
| "background": "#d6deeb", | |
| "foreground": "#011627", | |
| "leading_diamond": "\ue0b6", | |
| "style": "diamond", | |
| "template": "\uf489 {{ .Name }}", | |
| "trailing_diamond": "<transparent,#d6deeb>\ue0b2</>", | |
| "type": "shell" | |
| }, | |
| { | |
| "background": "#ffffff", | |
| "foreground": "#5398c2", | |
| "leading_diamond": "\ue0b2", | |
| "style": "diamond", | |
| "template": " \uFD03 {{ .Name }}", | |
| "trailing_diamond": "<transparent,#ffffff>\ue0b2</>", | |
| "type": "az" | |
| }, | |
| { | |
| "background": "#316ce4", | |
| "foreground": "#ffffff", | |
| "leading_diamond": "\ue0b2", | |
| "style": "diamond", | |
| "template": " \ufd31 {{.Context}}{{if .Namespace}} :: {{.Namespace}}{{end}} ", | |
| "trailing_diamond": "<#316ce4,transparent>\ue0b4</>", | |
| "type": "kubectl", | |
| "parse_kubeconfig": true | |
| } | |
| ], | |
| "type": "prompt" | |
| }, | |
| { | |
| "alignment": "left", | |
| "newline": true, | |
| "segments": [ | |
| { | |
| "foreground": "#26C6DA", | |
| "style": "plain", | |
| "template": "\u2570\u2500", | |
| "type": "text" | |
| }, | |
| { | |
| "foreground": "#F48024", | |
| "foreground_templates": [ | |
| "{{ if gt .Code 0 }}#C4524F{{ end }}" | |
| ], | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "style": "plain", | |
| "template": " \uf16c ", | |
| "type": "exit" | |
| }, | |
| { | |
| "foreground": "#26C6DA", | |
| "properties": { | |
| "always_enabled": true | |
| }, | |
| "style": "plain", | |
| "template": "\ue285 ", | |
| "type": "text" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ], | |
| "console_title_template": "{{ .Folder }}", | |
| "transient_prompt": { | |
| "background": "transparent", | |
| "foreground": "#d6deeb", | |
| "template": "\uf017 {{ now | date \"03:04:05\" }} \uf07c {{ .PWD }} \ue285 " | |
| }, | |
| "version": 2 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.programmingfonts.org/#jetbrainsmono