Created
October 27, 2023 18:35
-
-
Save sunilshahi/66cc5cf7090a084421e5ff26b68cddff to your computer and use it in GitHub Desktop.
oh my posh config
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", | |
"version": 2, | |
"final_space": true, | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "diamond", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#282c34", | |
"background": "#c678dd", | |
"leading_diamond": "\ue0b6", | |
"trailing_diamond": "\ue0b0", | |
"template": " \ue5ff {{ .Path }} ", | |
"properties": { | |
"style": "folder" | |
} | |
}, | |
{ | |
"type": "git", | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#282c34", | |
"background": "#61afef", | |
"template": " {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }} \uf044 {{ .Working.String }}{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }} \uf046 {{ .Staging.String }}{{ end }} ", | |
"properties": { | |
"fetch_stash_count": true, | |
"fetch_status": true, | |
"fetch_upstream_icon": true | |
} | |
}, | |
{ | |
"type": "dotnet", | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#282c34", | |
"background": "#e5c07b", | |
"template": " \ue70c {{ if .Unsupported }}\uf071{{ else }}{{ .Full }}{{ end }} ", | |
"properties": { | |
"fetch_version": true | |
} | |
}, | |
{ | |
"type": "root", | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#282c34", | |
"background": "#56b6c2", | |
"template": " \uf0e7 " | |
}, | |
{ | |
"type": "exit", | |
"style": "powerline", | |
"powerline_symbol": "\ue0b0", | |
"foreground": "#282c34", | |
"background": "#98c379", | |
"background_templates": [ | |
"{{ if gt .Code 0 }}#f1184c{{ end }}" | |
], | |
"trailing_diamond": "\ue0b4", | |
"template": " \ue23a {{ if gt .Code 0 }}\uf00d{{ else }}\uf42e{{ end }} ", | |
"properties": { | |
"always_enabled": true | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment