{ "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", "palette": { "nix": "#81A1C1", "error": "#BF616A", "backgroundish": "#525252", "white": "#FFF", "whiteish": "#DDE1E6" }, "blocks": [ { "alignment": "left", "segments": [ { "foreground": "p:whiteish", "properties": { "folder_separator_icon": "/", "home_icon": "~", "style": "letter" }, "style": "plain", "template": "{{ $segment := .Segments.Git }}{{ if $segment.Dir }}{{ $segment.RepoName }}{{if ne $segment.RepoName .Path}}{{ trimPrefix $segment.Dir .PWD }}{{ end }}{{ else }}{{ path .Path .Location }}{{ end }} ", "type": "path" }, { "foreground": "p:whiteish", "properties": { "branch_icon": "", "branch_identical_icon": "", "branch_ahead_icon": "<#88C0D0>\u21e1", "branch_behind_icon": "<#88C0D0>\u21e3", "branch_gone_icon": "×", "fetch_stash_count": true, "fetch_status": true, "fetch_upstream_icon": true, "github_icon": "" }, "style": "plain", "template": "{{.HEAD}}{{if .BranchStatus }} {{.BranchStatus}}{{end}}{{ if .Working.Changed }}*{{ end }}{{if gt .StashCount 0}}${{end}} ", "type": "git" }, { "foreground": "p:white", "foreground_templates": [ "{{if contains .Env.IN_NIX_SHELL \"pure\"}}p:nix{{end}}", "{{if contains .Env.IN_NIX_SHELL \"impure\"}}p:nix{{end}}", "{{if gt .Code 0}}p:error{{end}}" ], "style": "plain", "template": "{{if .Root}}#{{else}}\u276f{{end}} ", "type": "text" } ], "type": "prompt" }, { "alignment": "left", "segments": [ { "type": "executiontime", "style": "plain", "template": "<#eed49f>{{ .FormattedMs }}" } ], "type": "rprompt" } ], "console_title_template": "{{if .Root}}#{{end}} {{.PWD}}", "transient_prompt": { "foreground": "p:white", "foreground_templates": [ "{{if contains .Env.IN_NIX_SHELL \"pure\"}}p:nix{{end}}", "{{if contains .Env.IN_NIX_SHELL \"impure\"}}p:nix{{end}}", "{{if gt .Code 0 }}p:error{{ end }}" ], "template": "\u276f " }, "secondary_prompt": { "foreground": "p:backgroundish", "template": "λ> " }, "version": 2 }