Skip to content

Instantly share code, notes, and snippets.

@drandarov-io
Last active November 14, 2025 16:40
Show Gist options
  • Select an option

  • Save drandarov-io/d1876d5a717ef5399ec3d005e9eed88b to your computer and use it in GitHub Desktop.

Select an option

Save drandarov-io/d1876d5a717ef5399ec3d005e9eed88b to your computer and use it in GitHub Desktop.
{
"url": "https://gist.github.com/drandarov-io/d1876d5a717ef5399ec3d005e9eed88b",
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"cheatsheet": [
"\ue0b0 ", "\ue0b1 ", "\ue0b2 ", "\ue0b3 ",
"\ue0b4 ", "\ue0b5 ", "\ue0b6 ", "\ue0b7 ",
"\ue0b8 ", "\ue0b9 ", "\ue0ba ", "\ue0bb ",
"\ue0bc ", "\ue0bd ", "\ue0be ", "\ue0bf ",
"\ue0c0 ", "\ue0c1 ", "\ue0c2 ", "\ue0c3 ",
"\ue0c4 ", "\ue0c5 ", "\ue0c6 ", "\ue0c7 ",
"\ue0c8 ", "\ue0c9 ", "\ue0ca ", "\ue0cb ",
"\ue0cc ", "\ue0cd ", "\ue0ce ", "\ue0cf ",
"\ue0d0 ", "\ue0d1 ", "\ue0d2 ", "\ue0d3 ",
"\ue0d4 ", "\ue0d5 ", "\ue0d6 ", "\ue0d7 "
],
"palette": {
"black": "#262B44",
"white": "#ffffff",
"grey": "#76799c",
"darkblue": "#254d4e",
"greyblue": "#1f5177",
"greyblue2": "#3271a1",
"teal": "#2e9982",
"tealgreen": "#05ad73",
"orange": "#ee7b4d",
"yellow": "#e6a537",
"green": "#52c9a3",
"greygreen": "#6db85b",
"java": "#3d5dc7"
},
"upgrade": {
"source": "cdn",
"interval": "168h",
"auto": true,
"notice": true
},
"shell_integration": true,
"final_space": true,
"version": 3,
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "os",
"template": " {{ .Icon }}{{ if not .Env.POSH_COMPACT }} <b>{{ .UserName }}</b>@{{ .HostName }}{{ end }} ",
"style": "diamond",
"leading_diamond": "",
"trailing_diamond": "",
"foreground": "p:darkblue",
"background": "p:tealgreen",
"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\" }}#e86800{{ end }}"
]
},
{
"properties": {
"mapped_shell_names": {
"pwsh": " pwsh",
"bash": " bash",
"zsh": " zsh"
}
},
"type": "shell",
"template": "{{ if not .Env.OS }} {{ .Name }} {{ end }}",
"style": "powerline",
"leading_powerline_symbol": "",
"powerline_symbol": "",
"foreground": "p:white",
"background": "p:darkblue",
"background_templates": [
"{{ if eq .Shell \"pwsh\" }}#1f6feb{{ end }}",
"{{ if eq .Shell \"bash\" }}#2e8b57{{ end }}",
"{{ if eq .Shell \"zsh\" }}#8a2be2{{ end }}"
]
},
{
"properties": {
"folder_icon": "",
"folder_separator_icon": "/",
"style": "full",
"home_icon": " "
},
"type": "path",
"template": "{{ if not .Env.POSH_COMPACT }} {{ path .Path .Location }} {{ end }}",
"style": "diamond",
"leading_diamond": "",
"trailing_diamond": "",
"foreground": "p:white",
"background": "p:greyblue2"
},
{
"properties": {
"folder_icon": "",
"folder_separator_icon": " <#222233></> ",
"style": "fish",
"full_length_dirs": 2,
"home_icon": "\ueb06"
},
"type": "path",
"template": "{{ if .Env.POSH_COMPACT }} {{ path .Path .Location }} {{ end }}",
"style": "diamond",
"leading_diamond": "",
"trailing_diamond": "",
"foreground": "p:white",
"background": "p:greyblue2"
},
{
"properties": {
"branch_icon": "<#ffffff> </>",
"fetch_status": true,
"fetch_upstream_icon": true
},
"type": "git",
"template": " {{ if .UpstreamURL }}{{ url .UpstreamIcon .UpstreamURL }} {{ end }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }} ",
"style": "powerline",
"leading_powerline_symbol": "",
"powerline_symbol": "",
"foreground": "p:white",
"background": "p:orange"
},
{
"type": "node",
"template": "  {{ if .PackageManagerIcon }}{{ .PackageManagerIcon }} {{ end }}{{ .Major }} ",
"style": "powerline",
"powerline_symbol": "",
"foreground": "p:white",
"background": "p:greygreen"
},
{
"properties": {
"display_mode": "context"
},
"type": "python",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ if .Venv }}{{ .Venv }} {{ end }}{{ .Major }}.{{ .Minor }}{{ end }} ",
"style": "powerline",
"powerline_symbol": "",
"foreground": "p:white",
"background": "p:yellow"
},
{
"type": "java",
"template": "  {{ if .Error }}{{ .Error }}{{ else }}{{ .Major }}{{ end }} ",
"style": "powerline",
"powerline_symbol": "",
"foreground": "p:white",
"background": "p:java"
},
{
"properties": {
"time_format": "02.01 <#030303></> 15:04:05"
},
"type": "time",
"template": " 󰨳 {{ if .Env.CW }}{{ .Env.CW }}@{{ end }}{{ .CurrentDate | date .Format }} ",
"style": "diamond",
"leading_diamond": "",
"foreground": "p:white",
"background": "p:greyblue"
},
{
"properties": {
"always_enabled": true,
"cache_duration": "none"
},
"type": "executiontime",
"template": " {{ if gt .Code 0 }}[{{.Code}}]{{ else }}{{ end }} {{ .FormattedMs }} ",
"style": "powerline",
"powerline_symbol": "",
"foreground": "p:white",
"background": "p:grey",
"background_templates": [
"{{ if gt .Code 0 }}#e94731{{ end }}"
]
}
]
},
{
"type": "prompt",
"alignment": "right",
"segments": [
{
"background": "#f36943",
"background_templates": [
"{{ if eq \"Charging\" .State.String }}#40c4ff{{ end }}",
"{{ if eq \"Discharging\" .State.String }}#ff5722{{ end }}",
"{{ if eq \"Full\" .State.String }}#4caf50{{ end }}"
],
"foreground": "#ffffff",
"properties": {
"charged_icon": " ",
"charging_icon": " ",
"discharging_icon": " "
},
"template": " {{ if not .Error }}{{ .Icon }}{{ .Percentage }}{{ end }}{{ .Error }}% ",
"style": "diamond",
"leading_diamond": "",
"trailing_diamond": "",
"type": "battery"
}
]
},
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"template": "{{ if .Root }}{{ else }}<#45F1C2>❯</>{{ end }}<#26C6DA>❯</>",
"foreground": "#CD4277",
"type": "text",
"style": "plain"
},
{
"template": "",
"foreground": "#CD4277",
"type": "text",
"style": "plain"
}
],
"newline": true
}
],
"tooltips": [
{
"properties": {
"display_default": true
},
"leading_diamond": "",
"trailing_diamond": "",
"template": "  {{ .Profile }}{{ if .Region }}@{{ .Region }}{{ end }} ",
"foreground": "p:white",
"background": "p:orange",
"type": "aws",
"style": "diamond",
"tips": [
"aws"
]
},
{
"properties": {
"display_default": true
},
"leading_diamond": "",
"trailing_diamond": "",
"template": "  {{ .Name }} ",
"foreground": "p:white",
"background": "p:blue",
"type": "az",
"style": "diamond",
"tips": [
"az"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment