Skip to content

Instantly share code, notes, and snippets.

@araxis
Last active November 14, 2023 15:03
Show Gist options
  • Save araxis/3cc6a1cb51f61ac9f14f339970683685 to your computer and use it in GitHub Desktop.
Save araxis/3cc6a1cb51f61ac9f14f339970683685 to your computer and use it in GitHub Desktop.
Oh My Posh-theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#ff479c",
"foreground": "#ffffff",
"properties": {
"folder_separator_icon": "",
"home_icon": "~",
"style": "folder"
},
"style": "powerline",
"template": "<transparent></>  {{ .Path }} <#ff479c,transparent></>",
"type": "path"
},
{
"background": "#fffb38",
"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 }}"
],
"foreground": "#193549",
"properties": {
"branch_max_length": 25,
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"branch_icon": " "
},
"style": "powerline",
"template": "<transparent></> {{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} <#fffb38,transparent></>",
"type": "git"
},
{
"type": "dotnet",
"style": "powerline",
"foreground": "#ffffff",
"background": "#6CA35E",
"template": "<transparent></>  {{ if .Unsupported }}{{ else }}{{ .Full }}{{ end }}<#6CA35E,transparent></>",
"properties": {
"fetch_version": true
}
},
{
"background": "#00897b",
"background_templates": [
"{{ if gt .Code 0 }}#e91e63{{ end }}"
],
"foreground": "#ffffff",
"properties": {
"always_enabled": true
},
"style": "diamond",
"template": "<transparent></> {{ if gt .Code 0 }}﨑{{ else }}﨓{{ end }} ",
"trailing_diamond": "",
"type": "status"
}
],
"type": "prompt"
}
],
"console_title_template": "{{ .Folder }}",
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment