Last active
May 11, 2022 20:28
-
-
Save ivan-rosales-rieloff/b2da94815b0a431abcc1df53bdce163f to your computer and use it in GitHub Desktop.
Custom 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": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "session", | |
"style": "diamond", | |
"foreground": "#ffffff", | |
"background": "#007175", | |
"leading_diamond": "\uE0B6", | |
"trailing_diamond": "\uE0B0" | |
}, | |
{ | |
"type": "time", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"background": "#d9ff00", | |
"foreground": "#000000", | |
"properties": { | |
"time_format": "2006-01-02T15:04:05" | |
} | |
}, | |
{ | |
"type": "git", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#193549", | |
"background": "#02dbac", | |
"background_templates": [ | |
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}", | |
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}", | |
"{{ if gt .Ahead 0 }}#B388FF{{ end }}", | |
"{{ if gt .Behind 0 }}#B388FF{{ end }}" | |
], | |
"leading_diamond": "", | |
"trailing_diamond": "", | |
"properties": { | |
"fetch_status": true, | |
"fetch_stash_count": true, | |
"fetch_upstream_icon": true, | |
"branch_max_length": 25, | |
"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": "battery", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#193549", | |
"background": "#f36943", | |
"properties": { | |
"battery_icon": "", | |
"color_background": true, | |
"charged_color": "#4caf50", | |
"charging_color": "#40c4ff", | |
"discharging_color": "#ff5722", | |
"postfix": "\uF295 " | |
} | |
}, | |
{ | |
"type": "node", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#ffffff", | |
"background": "#6CA35E", | |
"properties": { | |
"prefix": " \uE718 " | |
} | |
}, | |
{ | |
"type": "az", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"foreground": "#FFFFFF", | |
"background": "#07367c", | |
"properties": { | |
"prefix": " \uE296 ", | |
"postfix": " \uE62A ", | |
"display_version": true, | |
"display_mode": "always" | |
} | |
}, | |
{ | |
"type": "shell", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#ffffff", | |
"background": "#0077c2", | |
"properties": { | |
"prefix": " \uFCB5 " | |
} | |
}, | |
{ | |
"type": "root", | |
"style": "powerline", | |
"powerline_symbol": "\uE0B0", | |
"foreground": "#193549", | |
"background": "#ffff66" | |
}, | |
{ | |
"type": "exit", | |
"style": "diamond", | |
"foreground": "#ffffff", | |
"background": "#470081", | |
"leading_diamond": "", | |
"trailing_diamond": "\uE0B4", | |
"properties": { | |
"display_exit_code": false, | |
"always_enabled": true, | |
"error_color": "#f1184c", | |
"color_background": true, | |
"prefix": "<transparent>\uE0B0</> \uE23A" | |
} | |
} | |
] | |
}, | |
{ | |
"type": "newline" | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "plain", | |
"foreground": "#ffffff", | |
"properties": { | |
"style": "full", | |
"prefix": "<#0077c2><b>┖[</b></>", | |
"postfix": "<#0077c2><b>]</b></>|>" | |
} | |
} | |
] | |
} | |
], | |
"final_space": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment