Created
February 1, 2023 20:53
-
-
Save kret/46b032bfef04dd2949a9d7b4f3953592 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", | |
| "palette": { | |
| "background-color": "transparent", | |
| "nblack": "#282828", | |
| "nred": "#cc241d", | |
| "ngreen": "#98971a", | |
| "nyellow": "#d79921", | |
| "nblue": "#458588", | |
| "nmagenta": "#b16286", | |
| "ncyan": "#689d6a", | |
| "nwhite": "#a89984", | |
| "bblack": "#928374", | |
| "bred": "#fb4934", | |
| "bgreen": "#b8bb26", | |
| "byellow": "#fabd2f", | |
| "bblue": "#83a598", | |
| "bmagenta": "#d3869b", | |
| "bcyan": "#8ec07c", | |
| "bwhite": "#ebdbb2" | |
| }, | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "background": "p:nblack", | |
| "foreground": "p:bwhite", | |
| "style": "powerline", | |
| "template": "{{ if .WSL }}WSL at{{ end }} {{.Icon}} ", | |
| "type": "os" | |
| }, | |
| { | |
| "background": "p:bgreen", | |
| "foreground": "p:nblack", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "style": "full" | |
| }, | |
| "style": "powerline", | |
| "template": " {{ .Path }} ", | |
| "type": "path" | |
| }, | |
| { | |
| "background": "p:ngreen", | |
| "background_templates": [ | |
| "{{ if or (.Working.Changed) (.Staging.Changed) }}p:nblue{{ end }}", | |
| "{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:nyellow{{ end }}", | |
| "{{ if gt .Ahead 0 }}p:nmagenta{{ end }}", | |
| "{{ if gt .Behind 0 }}p:bmagenta{{ end }}" | |
| ], | |
| "foreground": "p:bwhite", | |
| "leading_diamond": "\ue0b6", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "branch_max_length": 25, | |
| "fetch_stash_count": true, | |
| "fetch_status": true, | |
| "branch_icon": "\uE0A0 ", | |
| "branch_identical_icon": "\u25CF" | |
| }, | |
| "style": "powerline", | |
| "template": " {{ .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 }} \uf692 {{ .StashCount }}{{ end }} ", | |
| "trailing_diamond": "\ue0b4", | |
| "type": "git" | |
| }, | |
| { | |
| "background": "p:bblack", | |
| "foreground": "p:nred", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "fetch_version": true | |
| }, | |
| "style": "powerline", | |
| "template": " \ue738 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
| "type": "java" | |
| }, | |
| { | |
| "background": "p:bwhite", | |
| "foreground": "p:nmagenta", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "fetch_version": true | |
| }, | |
| "style": "powerline", | |
| "template": " \ue61f {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
| "type": "haskell" | |
| }, | |
| { | |
| "background": "p:ngreen", | |
| "foreground": "p:bwhite", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "fetch_version": true | |
| }, | |
| "style": "powerline", | |
| "template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", | |
| "type": "node" | |
| }, | |
| { | |
| "background": "p:nyellow", | |
| "foreground": "p:bblue", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "display_mode": "files", | |
| "fetch_virtual_env": false | |
| }, | |
| "style": "powerline", | |
| "template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
| "type": "python" | |
| }, | |
| { | |
| "background": "p:nred", | |
| "foreground": "p:bwhite", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "display_mode": "files", | |
| "fetch_version": true | |
| }, | |
| "style": "powerline", | |
| "template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
| "type": "ruby" | |
| }, | |
| { | |
| "background": "p:bblue", | |
| "foreground": "p:nblack", | |
| "powerline_symbol": "\ue0b0", | |
| "style": "powerline", | |
| "template": " \ufd31 {{ .Context }}{{ if .Namespace }} :: {{ .Namespace }}{{ end }} ", | |
| "type": "kubectl" | |
| }, | |
| { | |
| "background": "p:nblack", | |
| "foreground": "p:bmagenta", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "fetch_version": true | |
| }, | |
| "style": "powerline", | |
| "template": " \ue33c {{ .WorkspaceName }}{{ if .Version }} {{ .Version }}{{ end }} ", | |
| "type": "terraform" | |
| }, | |
| { | |
| "background": "p:ncyan", | |
| "foreground": "p:bwhite", | |
| "powerline_symbol": "\ue0b0", | |
| "style": "powerline", | |
| "template": " {{ if .Project }}\ue7b2 {{ .Project }}{{ if .Account }} :: {{ .Account }}{{ end }}{{ end }}", | |
| "type": "gcp" | |
| }, | |
| { | |
| "background_templates": [ | |
| "{{if contains \"default\" .Profile}}p:nblack{{end}}", | |
| "{{if contains \"kret\" .Profile}}p:bblack{{end}}" | |
| ], | |
| "foreground": "p:byellow", | |
| "powerline_symbol": "\ue0b0", | |
| "properties": { | |
| "display_default": false | |
| }, | |
| "style": "powerline", | |
| "template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", | |
| "type": "aws" | |
| }, | |
| { | |
| "background": "p:byellow", | |
| "foreground": "p:nblack", | |
| "powerline_symbol": "\ue0b0", | |
| "style": "powerline", | |
| "template": " \uf0ad ", | |
| "type": "root" | |
| } | |
| ], | |
| "type": "prompt" | |
| } | |
| ], | |
| "console_title_template": "{{ .Folder }}", | |
| "final_space": true, | |
| "version": 2 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment