Skip to content

Instantly share code, notes, and snippets.

@KhalidSaifullahFuad
Created December 27, 2023 06:10
Show Gist options
  • Save KhalidSaifullahFuad/0cebd4f45f7d56f2de3cb305f2d4d1a4 to your computer and use it in GitHub Desktop.
Save KhalidSaifullahFuad/0cebd4f45f7d56f2de3cb305f2d4d1a4 to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#1478DB",
"foreground": "#000000",
"leading_diamond": "\ue0b6",
"trailing_diamond": "\uE0B0",
"properties": {
"style": "full"
},
"style": "diamond",
"template": "{{ .Path }} ",
"type": "path"
},
{
"background_templates": [
"{{ if empty .Full }}p:c-project-generic-error{{ else }}#3AD900{{ end }}"
],
"foreground": "#000000",
"leading_diamond": "<transparent,background>\uE0B0</>",
"style": "diamond",
"template": " {{ if eq \"False\" (title (default \"False\" .Env.DISABLE_SEGMENT_PROJECT_NODE)) }}\uE718 {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }}{{ end }} ",
"trailing_diamond": "\uE0B0",
"type": "node"
},
{
"background": "#3AD900",
"background_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FFC600{{ 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",
"leading_diamond": "<transparent,background>\uE0B0</>",
"trailing_diamond": "\ue0b4",
"properties": {
"fetch_stash_count": true,
"fetch_status": true
},
"style": "diamond",
"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"
}
],
"final_space": true,
"version": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment