Skip to content

Instantly share code, notes, and snippets.

@goranhell
Last active February 20, 2022 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goranhell/bf526cd7e371cf8300b144fa010b71c3 to your computer and use it in GitHub Desktop.
Save goranhell/bf526cd7e371cf8300b144fa010b71c3 to your computer and use it in GitHub Desktop.
My take on oh-my-posh
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#ff479c",
"foreground": "#ffffff",
"leading_diamond": "",
"powerline_symbol": "",
"properties": {
"style": "folder",
"template": "  {{ .Path }} "
},
"style": "diamond",
"trailing_diamond": "",
"type": "path"
},
{
"background": "#fffb38",
"foreground": "#193549",
"powerline_symbol": "",
"properties": {
"fetch_stash_count": true,
"fetch_status": true,
"fetch_upstream_icon": true,
"template": " {{ .UpstreamIcon }}{{ .HEAD }} {{ .BranchStatus }}{{ if .Working.Changed }}  <#ff479c>{{ .Working.String }}</>{{ end }}{{ if and (.Staging.Changed) (.Working.Changed) }} |{{ end }}{{ if .Staging.Changed }}  <#6CA35E>{{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0}}  {{ .StashCount }}{{ end }}{{ if gt .WorktreeCount 0}}  {{ .WorktreeCount }}{{ end }} "
},
"style": "powerline",
"type": "git"
},
{
"background": "#6CA35E",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"fetch_version": true,
"template": "  {{ if .Unsupported }}{{ else }}{{ .Full }}{{ end }} "
},
"style": "powerline",
"type": "dotnet"
},
{
"background": "#ffff66",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"template": "  "
},
"style": "powerline",
"type": "root"
},
{
"background": "#1BD760",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"paused_icon": " ",
"playing_icon": " ",
"stopped_icon": " ",
"template": "阮 {{ .Icon }}{{ if ne .Status \"stopped\" }}{{ .Artist }} - {{ .Track }}{{ end }} ",
"track_separator": " - "
},
"style": "powerline",
"type": "spotify"
},
{
"background": "#2e9599",
"foreground": "#ffffff",
"powerline_symbol": "",
"properties": {
"template": "  {{ .CurrentDate | date .Format }} ",
"time_format": "15:04:05"
},
"style": "powerline",
"trailing_diamond": "",
"type": "time"
},
{
"type": "exit",
"style": "diamond",
"foreground": "#2e9599",
"background": "#2e9599",
"background_templates": [
"{{ if gt .Code 0 }}#e91e63{{ end }}"
],
"foreground_templates": [
"{{ if gt .Code 0 }}#fffff{{ end }}"
],
"trailing_diamond": "",
"properties": {
"always_enabled": true,
"template": " \ue231"
}
}
],
"type": "prompt"
},
{
"type": "newline"
},
{
"alignment": "left",
"segments": [
{
"foreground": "#007ACC",
"properties": {
"template": " "
},
"style": "plain",
"type": "text"
}
],
"type": "prompt"
}
],
"console_title": true,
"console_title_style": "folder",
"version": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment