Last active
January 25, 2023 16:11
-
-
Save dlkj/b451c52a9f0525efafc1a422cce95a4a to your computer and use it in GitHub Desktop.
oh-my-posh 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", | |
"pwd": "osc99", | |
"palette": { | |
"git-foreground": "#0D1E37", | |
"git": "#2287E6", | |
"git-modified": "#FF9248", | |
"git-diverged": "#FF4500", | |
"git-ahead": "#B388FF", | |
"git-behind": "#B388FF", | |
"session": "#0D4B59", | |
"session-foreground": "white", | |
"path": "#95C0E6", | |
"path-foreground": "#0D1E37", | |
"execution-time": "#0D4B59", | |
"execution-time-foreground": "white", | |
"exit-code": "#DFE695", | |
"exit-code-error": "#E69B95", | |
"exit-code-foreground": "#3B3B3B", | |
"shell": "#E62F22", | |
"shell-foreground": "black", | |
"battery-charging": "#40c4ff", | |
"battery-discharging": "#ff5722", | |
"battery-full": "#4caf50", | |
"battery-foreground": "white", | |
"clock": "#591E0D", | |
"clock-foreground": "white" | |
}, | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "p:session", | |
"foreground": "p:session-forgound", | |
"leading_diamond": "\ue0b6", | |
"properties": { | |
"template": "{{ if .SSHSession }}\uF817{{ end }}{{.UserName }}@{{ .HostName }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b0", | |
"type": "session" | |
}, | |
{ | |
"background": "p:path", | |
"foreground": "p:path-foreground", | |
"powerline_symbol": "\ue0b0", | |
"invert_powerline": false, | |
"properties": { | |
"folder_separator_icon": " \ue0b1 ", | |
"home_icon": "\uf015", | |
"style": "mixed", | |
"template": " {{ .Path }} " | |
}, | |
"style": "powerline", | |
"type": "path" | |
}, | |
{ | |
"foreground": "p:git-foreground", | |
"background": "p:git", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}p:git-modified{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}p:git-diverged{{ end }}", | |
"{{ if gt .Ahead 0 }}p:git-ahead{{ end }}", | |
"{{ if gt .Behind 0 }}p:git-behind{{ end }}" | |
], | |
"leading_diamond": "\ue0b6", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"branch_max_length": 25, | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true, | |
"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 }}" | |
}, | |
"style": "powerline", | |
"trailing_diamond": "\ue0b4", | |
"type": "git" | |
}, | |
{ | |
"background": "#6CA35E", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_version": true, | |
"template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} " | |
}, | |
"style": "powerline", | |
"type": "node" | |
}, | |
{ | |
"background": "#8ED1F7", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_version": true, | |
"template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "go" | |
}, | |
{ | |
"background": "#4063D8", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_version": true, | |
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "julia" | |
}, | |
{ | |
"background": "#FFDE57", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "files", | |
"fetch_virtual_env": false, | |
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "python" | |
}, | |
{ | |
"background": "#AE1401", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true, | |
"template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "ruby" | |
}, | |
{ | |
"background": "#FEAC19", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": false, | |
"template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "azfunc" | |
}, | |
{ | |
"background_templates": [ | |
"{{if contains \"default\" .Profile}}#FFA400{{end}}", | |
"{{if contains \"jan\" .Profile}}#f1184c{{end}}" | |
], | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_default": false, | |
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} " | |
}, | |
"style": "powerline", | |
"type": "aws" | |
}, | |
{ | |
"type": "java", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#ffffff", | |
"background": "#4063D8", | |
"properties": { | |
"template": " {{ if .Error }}{{ .Error }}{{ else }}\uE738 {{ .Full }}{{ end }}" | |
} | |
}, | |
{ | |
"type": "rust", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#193549", | |
"background": "#99908a", | |
"properties": { | |
"template": " {{ if .Error }}{{ .Error }}{{ else }}\uE7a8 {{ .Full }}{{ end }}" | |
} | |
}, | |
{ | |
"background": "#ff1111", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"template": " \uf0ad " | |
}, | |
"style": "powerline", | |
"type": "root" | |
}, | |
{ | |
"type": "text", | |
"style": "powerline", | |
"foreground": "#ffffff", | |
"background": "transparent", | |
"properties": { | |
"template": "<parentBackground,background>\ue0b0</>", | |
"always_enabled": true | |
} | |
}, | |
{ | |
"background": "p:execution-time", | |
"foreground": "p:execution-time-foreground", | |
"properties": { | |
"always_enabled": false, | |
"threshold": 250, | |
"template": "<transparent>\ue0b0</>\ufbab{{ .FormattedMs }}", | |
"style": "austin" | |
}, | |
"style": "powerline", | |
"type": "executiontime" | |
}, | |
{ | |
"background": "p:exit-code", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}p:exit-code-error{{ end }}" | |
], | |
"foreground": "p:exit-code-foreground", | |
"properties": { | |
"always_enabled": true, | |
"template": " {{ if gt .Code 0 }}\uf7d3 {{ .Meaning }}{{ else }}\uf7d0 {{ end }}" | |
}, | |
"style": "diamond", | |
"leading_diamond": "<parentBackground,background>\ue0b0</>", | |
"trailing_diamond": "\ue0b4", | |
"type": "exit" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"segments": [ | |
{ | |
"type": "os", | |
"style": "diamond", | |
"foreground": "p:shell-foreground", | |
"background": "p:shell", | |
"properties": { | |
"template": "{{ if .WSL }}\uE62A {{ end }}{{ if eq .Icon \"ubuntu-20.04\"}}\uF31b{{ else }}{{ .Icon }}{{ end }} ", | |
"display_distro_name": true | |
}, | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "" | |
}, | |
{ | |
"background": "p:shell", | |
"foreground": "p:shell-foreground", | |
"leading_diamond": "", | |
"trailing_diamond": "<transparent,background>\ue0b2</>", | |
"properties": { | |
"template": "{{ .Name }}" | |
}, | |
"style": "diamond", | |
"type": "shell" | |
}, | |
{ | |
"background": "p:battery-discharging", | |
"background_templates": [ | |
"{{if eq \"Charging\" .State.String}}p:battery-charging{{end}}", | |
"{{if eq \"Discharging\" .State.String}}p:battery-discharging{{end}}", | |
"{{if eq \"Full\" .State.String}}p:battery-full{{end}}" | |
], | |
"foreground": "p:battery-foreground", | |
"invert_powerline": true, | |
"powerline_symbol": "\ue0b2", | |
"properties": { | |
"charged_icon": "\ue22f ", | |
"charging_icon": "\ue234 ", | |
"discharging_icon": "\ue231 ", | |
"template": "{{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295 " | |
}, | |
"style": "powerline", | |
"type": "battery" | |
}, | |
{ | |
"background": "p:clock", | |
"foreground": "p:clock-foreground", | |
"invert_powerline": true, | |
"leading_diamond": "\ue0b2", | |
"properties": { | |
"template": "{{ .CurrentDate | date .Format }}" | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"type": "time" | |
} | |
], | |
"type": "rprompt" | |
} | |
], | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{ .Shell }}: {{ .HostName }} {{ .PWD }}", | |
"final_space": true, | |
"version": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment