Created
August 21, 2023 17:30
-
-
Save rajabilal555/b23316ed8f24e20e54cad2e50d0a949c to your computer and use it in GitHub Desktop.
Theme configuration file for OhmyPosh (https://ohmyposh.dev/)
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": [ | |
{ | |
"foreground": "#FFFB38", | |
"leading_diamond": "\u256d\u2500", | |
"style": "diamond", | |
"type": "root" | |
}, | |
{ | |
"background": "#0077c2", | |
"foreground": "#ffffff", | |
"properties": { | |
"folder_icon": "...", | |
"folder_separator_icon": "<transparent> \ue0bd </>", | |
"home_icon": "\ueb06", | |
"style": "agnoster_short" | |
}, | |
"style": "diamond", | |
"template": "<parentBackground>\ue0b0</> {{ .Path }} ", | |
"trailing_diamond": "\ue0b0", | |
"type": "path" | |
}, | |
{ | |
"background": "#00C853", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FFEB3B{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#FFCC80{{ end }}", | |
"{{ if gt .Ahead 0 }}#B388FF{{ end }}", | |
"{{ if gt .Behind 0 }}#B388FF{{ end }}" | |
], | |
"foreground": "#000000", | |
"powerline_symbol": "\ue0b0", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_status": true | |
}, | |
"style": "powerline", | |
"template": " {{ .HEAD }}{{ if .Staging.Changed }}<#FF6F00> \uf046 {{ .Staging.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ", | |
"type": "git" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "right", | |
"segments": [ | |
{ | |
"type": "php", | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"foreground": "#ffffff", | |
"background": "#256C9D", | |
"template": " \uE73d {{ .Full }} " | |
}, | |
{ | |
"type": "flutter", | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"foreground": "#ffffff", | |
"background": "#06A4CE", | |
"template": " \ue64c {{ .Full }} " | |
}, | |
{ | |
"background": "#303030", | |
"foreground": "#3C873A", | |
"properties": { | |
"fetch_package_manager": true, | |
"npm_icon": " <#cc3a3a>\ue5fa</> ", | |
"yarn_icon": " <#348cba>\ue6a7</>" | |
}, | |
"style": "diamond", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b4 ", | |
"template": "\ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }}", | |
"type": "node" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#ffffff", | |
"properties": { | |
"style": "austin", | |
"threshold": 0 | |
}, | |
"leading_diamond": "\ue0b6", | |
"style": "diamond", | |
"template": " \ueba2 {{ .FormattedMs }}", | |
"type": "executiontime" | |
}, | |
{ | |
"background": "#29315A", | |
"foreground": "#ffffff", | |
"properties": { | |
"time_format": "15:04:05 | Monday" | |
}, | |
"style": "diamond", | |
"template": "<transparent> \ue0ba\ue0bc </>{{ .CurrentDate | date .Format }} ", | |
"type": "time" | |
}, | |
{ | |
"background": "#29315A", | |
"background_templates": [ | |
"{{if eq \"Charging\" .State.String}}#9dc482{{end}}", | |
"{{if eq \"Discharging\" .State.String}}#F4C095{{end}}", | |
"{{if eq \"Full\" .State.String}}#218580{{end}}" | |
], | |
"foreground": "#ffffff", | |
"foreground_templates": [ | |
"{{if eq \"Charging\" .State.String}}#262626{{end}}", | |
"{{if eq \"Discharging\" .State.String}}#262626{{end}}", | |
"{{if eq \"Full\" .State.String}}#ffffff{{end}}" | |
], | |
"properties": { | |
"charged_icon": "\uf240 ", | |
"charging_icon": "\uf1e6 ", | |
"discharging_icon": "\ue234 " | |
}, | |
"style": "diamond", | |
"trailing_diamond": "\ue0b4", | |
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}\uf295", | |
"type": "battery" | |
} | |
], | |
"type": "prompt" | |
}, | |
{ | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"foreground": "#0077c2", | |
"style": "plain", | |
"template": "\u2570\u2500", | |
"type": "text" | |
}, | |
{ | |
"foreground": "#e0f8ff", | |
"foreground_templates": [ | |
"{{ if gt .Code 0 }}#ef5350{{ end }}" | |
], | |
"properties": { | |
"always_enabled": true | |
}, | |
"style": "plain", | |
"template": "\ue285\ueab6 ", | |
"type": "status" | |
} | |
], | |
"type": "prompt" | |
} | |
], | |
"console_title_template": "{{if .Root}} \u26a1 {{end}}{{.Folder | replace \"~\" \"🏚\" }} @ {{.HostName}}", | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment