Skip to content

Instantly share code, notes, and snippets.

@drandarov-io
Last active April 22, 2025 17:59
Show Gist options
  • Save drandarov-io/d1876d5a717ef5399ec3d005e9eed88b to your computer and use it in GitHub Desktop.
Save drandarov-io/d1876d5a717ef5399ec3d005e9eed88b to your computer and use it in GitHub Desktop.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"leading_diamond": "\ue0b6",
"template": "{{ .Icon }} <b>{{ .UserName }}</b>@{{ .HostName }}",
"foreground": "#00C983",
"background": "#003543",
"type": "os",
"style": "diamond",
"foreground_templates": [
"{{ if eq .OS \"window\" }}#00C983{{ end }}",
"{{ if eq .OS \"ubuntu\" }}#FFFFFF{{ end }}"
],
"background_templates": [
"{{ if eq .OS \"window\" }}#003543{{ end }}",
"{{ if eq .OS \"ubuntu\" }}#da6200{{ end }}"
]
},
{
"properties": {
"cache_duration": "none",
"folder_icon": "\uf115",
"folder_separator_icon": "\\",
"home_icon": "\ueb06",
"style": "full"
},
"template": " {{ .Path }} ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#DA627D",
"type": "path",
"style": "powerline"
},
{
"properties": {
"branch_icon": " <#ffffff>\ue0a0 </>",
"cache_duration": "none",
"fetch_stash_count": true,
"fetch_status": false,
"fetch_upstream_icon": true
},
"template": " ➜ ({{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }}) ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#FCA17D",
"type": "git",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none"
},
"template": " \ue718 {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Full }} ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#76b367",
"type": "node",
"style": "powerline"
},
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"template": " \ueba2 {{ .FormattedMs }} ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#83769c",
"type": "executiontime",
"style": "powerline"
},
{
"properties": {
"cache_duration": "none",
"time_format": "15:04"
},
"template": " \uf017 {{ .CurrentDate | date .Format }} ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#33658A",
"type": "time",
"style": "powerline"
},
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"trailing_diamond": "\ue0b4",
"template": " {{ if gt .Code 0 }}\uf421{{ else }}\uf469{{ end }} ",
"foreground": "#ffffff",
"powerline_symbol": "\ue0b0",
"background": "#2e9599",
"type": "status",
"style": "diamond",
"background_templates": [
"{{ if gt .Code 0 }}red{{ end }}"
]
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"properties": {
"cache_duration": "none"
},
"template": "\ue3bf ",
"foreground": "#cd5e42",
"type": "root",
"style": "plain"
},
{
"properties": {
"cache_duration": "none"
},
"template": "<#26C6DA>❯</><#45F1C2>❯</>",
"foreground": "#CD4277",
"type": "text",
"style": "plain"
}
],
"newline": true
}
],
"version": 3,
"auto_upgrade": true,
"shell_integration": true,
"final_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment