Skip to content

Instantly share code, notes, and snippets.

@bhrott
Created July 26, 2026 02:55
Show Gist options
  • Select an option

  • Save bhrott/cabff652ae279e8449379a9b5fc3aebf to your computer and use it in GitHub Desktop.

Select an option

Save bhrott/cabff652ae279e8449379a9b5fc3aebf to your computer and use it in GitHub Desktop.
bhrott - ohmyposh config
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"var": {
"PrimaryColor": "#77f5d6",
"ErrorColor": "#ED6A5E",
"BackgroundColor": "#2f2f2f",
"PrimaryTextColor": "#FFFFFF",
"SecondaryTextColor": "#FFCE5C"
},
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background_templates": [ "{{ .Var.BackgroundColor }}" ],
"foreground_templates": [ "{{ .Var.PrimaryTextColor }}"],
"leading_diamond": "\ue0c7\u2593",
"options": {
"alpine": "\uf300",
"arch": "\uf303",
"centos": "\uf304",
"debian": "\uf306",
"elementary": "\uf309",
"fedora": "\uf30a",
"gentoo": "\uf30d",
"linux": "\ue712",
"macos": "\ue711",
"manjaro": "\uf312",
"mint": "\uf30f",
"opensuse": "\uf314",
"raspbian": "\uf315",
"ubuntu": "\uf31c",
"windows": "\ue70f"
},
"style": "diamond",
"template": "{{ if .WSL }}\ue712 on {{ end }}{{ .Icon }}<#7a7a7a> \ue0b1</>",
"type": "os"
},
{
"background_templates": [ "{{ .Var.BackgroundColor }}" ],
"foreground": "#fafafa",
"style": "diamond",
"template": " {{ if ne .Env.POSH_SESSION_DEFAULT_USER .UserName }}<#77f5d6>{{ .UserName }}{{ end }}</><#7a7a7a> \ue0b1</>",
"type": "session"
},
{
"background_templates": [ "{{ .Var.BackgroundColor }}" ],
"foreground": "#ffff66",
"style": "diamond",
"template": " \uf0e7<#7a7a7a> \ue0b1</>",
"type": "root"
},
{
"background_templates": [ "{{ .Var.BackgroundColor }}" ],
"foreground": "#fafafa",
"options": {
"folder_icon": "<#77f5d6>\ue5fe </>",
"style": "folder"
},
"style": "diamond",
"template": "<{{ .Var.PrimaryColor }}> \ue5ff </>{{ .Path }} ",
"type": "path"
},
{
"background_templates": [ "{{ .Var.BackgroundColor }}" ],
"foreground": "#ffeb3b",
"foreground_templates": [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#ffeb3b{{ end }}",
"{{ if gt .Ahead 0 }}#2EC4B6{{ end }}",
"{{ if gt .Behind 0 }}#8A4FFF{{ end }}"
],
"options": {
"fetch_status": true,
"fetch_upstream_icon": true
},
"style": "diamond",
"template": "<#7a7a7a>\ue0b1 </><{{ .Var.PrimaryColor }}>{{ .UpstreamIcon }} <{{ .Var.SecondaryTextColor }}>{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}<{{ .Var.PrimaryTextColor }}> \uf044 {{ .Working.String }}</>{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}<#2FDA4E> \uf046 {{ .Staging.String }}</>{{ end }}{{ if gt .StashCount 0 }} \ueb4b {{ .StashCount }}{{ end }} ",
"type": "git"
},
{
"background_templates": [ "{{ .Var.BackgroundColor }}" ],
"foreground": "#fafafa",
"style": "diamond",
"trailing_diamond": "\ue0b0",
"type": "text"
}
],
"type": "prompt"
},
{
"alignment": "right",
"segments": [
{
"background_templates": [ "{{ .Var.BackgroundColor }}" ],
"foreground": "#fafafa",
"options": {
"time_format": "15:04:05"
},
"style": "diamond",
"template": " {{ .CurrentDate | date .Format }}<{{ .Var.PrimaryColor }}> \ue641 </>",
"trailing_diamond": "\u2593\ue0c6",
"type": "time"
},
{
"foreground_templates": [
"{{ .Var.SecondaryTextColor }}"
],
"options": {
"style": "roundrock",
"threshold": 500,
"always_enabled": true
},
"style": "plain",
"template": " {{ .FormattedMs }}<{{ .Var.PrimaryColor }}> \uf252 </>",
"type": "executiontime"
}
],
"type": "prompt"
},
{
"alignment": "left",
"newline": true,
"segments": [
{
"type": "status",
"style": "diamond",
"foreground": "{{ .Var.PrimaryColor }}",
"background": "transparent",
"template": " {{ if eq .Code 0 }}<{{ .Var.PrimaryColor }}>\uf00c{{ else }}<{{ .Var.ErrorColor }}>\uf071{{ end }} <#ffffff>~",
"options": {
"always_enabled": true
}
}
],
"type": "prompt"
}
],
"console_title_template": "{{if .Root}}root :: {{end}}{{.Shell}} :: {{.Folder}}",
"final_space": true,
"version": 4
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment