-
-
Save aarshtalati/085b9f757acb61242bbe8bd7c5829243 to your computer and use it in GitHub Desktop.
Oh my Posh custom 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", | |
"palette": { | |
"git-foreground": "#193549", | |
"git": "#FFFB38", | |
"git-modified": "#FF9248", | |
"git-diverged": "#FF4500", | |
"git-ahead": "#B388FF", | |
"git-behind": "#B388FF", | |
"red": "#FF0000", | |
"green": "#00FF00", | |
"blue": "#0000FF", | |
"white": "#FFFFFF", | |
"black": "#111111" | |
}, | |
"blocks": [ | |
{ | |
"alignment": "left", | |
"segments": [ | |
{ | |
"background": "#FEAE34", | |
"foreground": "#262B44", | |
"properties": { | |
"macos": "mac" | |
}, | |
"style": "plain", | |
"template": "{{ if .WSL }}WSL at {{ end }}{{.Icon}}", | |
"type": "os" | |
}, | |
{ | |
"background": "#FEAE34", | |
"foreground": "#262B44", | |
"leading_diamond": "\ue0b6", | |
"properties": { | |
"display_host": false | |
}, | |
"style": "powerline", | |
"template": " {{ if .SSHSession }}\uf817 {{ end }}{{ .UserName }} ", | |
"trailing_diamond": "\ue0b0", | |
"type": "session" | |
}, | |
{ | |
"type": "battery", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#193549", | |
"background": "#ffeb3b", | |
"background_templates": [ | |
"{{if eq \"Charging\" .State.String}}#40c4ff{{end}}", | |
"{{if eq \"Discharging\" .State.String}}#ff5722{{end}}", | |
"{{if eq \"Full\" .State.String}}#4caf50{{end}}" | |
], | |
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}\uF295 ", | |
"properties": { | |
"discharging_icon": "\uE231 ", | |
"charging_icon": "\uE234 ", | |
"charged_icon": "\uE22F " | |
} | |
}, | |
{ | |
"type": "time", | |
"style": "plain", | |
"foreground": "#007ACC", | |
"properties": { | |
"time_format": "15:04:05" | |
} | |
}, | |
{ | |
"background": "#ff479c", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"root_icon": "\uf0e7" | |
}, | |
"style": "powerline", | |
"template": " \uf0e7<#7a7a7a> \ue0b1</>", | |
"type": "root" | |
}, | |
{ | |
"type": "python", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#100e23", | |
"background": "#a1f4b8", | |
"template": " \uE235 {{ .Full }} " | |
}, | |
{ | |
"type": "az", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#000000", | |
"background": "#9ec3f0", | |
"template": " \uFD03 {{ .EnvironmentName }}" | |
}, | |
{ | |
"type": "azfunc", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#ffffff", | |
"background": "#FEAC19", | |
"template": " \uf0e7 {{ .Full }} ", | |
"properties": { | |
"fetch_version": true, | |
"display_mode": "files" | |
} | |
}, | |
{ | |
"type": "sysinfo", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#000000", | |
"background": "#f3b7b0", | |
"template": " \uf85a {{ round .CPU .Precision }}% | RAM: {{ (div ((sub .PhysicalTotalMemory .PhysicalFreeMemory)|float64) 1000000000.0) }}/{{ (div .PhysicalTotalMemory 1000000000.0) }} GB", | |
"properties": { | |
"precision": 2 | |
}, | |
"style": "powerline" | |
}, | |
{ | |
"background": "#504B49", | |
"foreground": "#fafafa", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"folder_icon": "<#B5B2C2>\ue5fe </>", | |
"folder_separator_icon": "<#B5B2C2>\ue0bf </>", | |
"home_icon": "\uf015", | |
"style": "agnoster_short" | |
}, | |
"style": "powerline", | |
"template": " {{ path .Path .Location }} ", | |
"type": "path" | |
}, | |
{ | |
"background": "#193549", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"style": "powerline", | |
"template": " {{ .Status }} ", | |
"type": "poshgit" | |
}, | |
{ | |
"background": "#6CA35E", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "powerline", | |
"template": " \uf898 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ", | |
"type": "node" | |
}, | |
{ | |
"background": "#8ED1F7", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "powerline", | |
"template": " \ue626 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
"type": "go" | |
}, | |
{ | |
"background": "#4063D8", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_version": true | |
}, | |
"style": "powerline", | |
"template": " \ue624 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
"type": "julia" | |
}, | |
{ | |
"background": "#FFDE57", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true, | |
"fetch_virtual_env": false | |
}, | |
"style": "powerline", | |
"template": " \ue235 {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Full }}{{ end }} ", | |
"type": "python" | |
}, | |
{ | |
"background": "#AE1401", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": true | |
}, | |
"style": "powerline", | |
"template": " \ue791 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
"type": "ruby" | |
}, | |
{ | |
"background": "#FEAC19", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"display_mode": "files", | |
"fetch_version": false | |
}, | |
"style": "powerline", | |
"template": " \uf0e7{{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ", | |
"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 | |
}, | |
"style": "powerline", | |
"template": " \ue7ad {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ", | |
"type": "aws" | |
}, | |
{ | |
"background": "#ffff66", | |
"foreground": "#111111", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"root_icon": "\uf0ad" | |
}, | |
"style": "powerline", | |
"template": " \uf0e7 ", | |
"type": "root" | |
}, | |
{ | |
"background": "#83769c", | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "powerline", | |
"template": " {{ .FormattedMs }} ", | |
"type": "executiontime" | |
}, | |
{ | |
"background": "#95ffa4", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb95{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#c5e478{{ end }}", | |
"{{ if gt .Ahead 0 }}#C792EA{{ end }}", | |
"{{ if gt .Behind 0 }}#C792EA{{ end }}" | |
], | |
"foreground": "#193549", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"branch_icon": "\ue725 ", | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
}, | |
"style": "powerline", | |
"template": " {{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0}} \uf692 {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}} \uf1bb {{ .WorktreeCount }}{{ end }} ", | |
"type": "git" | |
}, | |
{ | |
"background": "#2e9599", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}#f1184c{{ end }}" | |
], | |
"foreground": "#ffffff", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "powerline", | |
"template": " \ue23a{{ if gt .Code 0 }} \uf00d{{ else }} \uf42e{{ end }} ", | |
"type": "exit" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#757575", | |
"style": "plain", | |
"template": "\n\u2514", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#ffffff", | |
"style": "plain", | |
"template": "$", | |
"type": "text" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"console_title_template": "{{ .Shell }} in {{ .Folder }}", | |
"final_space": true, | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment