"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" final_space = true version = 3 [transient_prompt] template = '❯❯ ' background = 'transparent' foreground_templates = ['{{if gt .Code 0}}#d04a39{{end}}', '{{if eq .Code 0}}#b5daa4{{end}}'] newline = true [[blocks]] alignment = "left" newline = true type = "prompt" [[blocks.segments]] foreground = "#fc71a7" style = "plain" template = "[{{ .CurrentDate | date .Format }}]" type = "time" [blocks.segments.properties] time_format = "15:04" # [[blocks.segments]] # # background = "#2e2e4e" # Muted indigo blue # foreground = "#B388FF" # style = "plain" # type = "session" # template = '{{ .UserName }}{{if .SSHSession }}@{{ .HostName }}{{ end }}' # # background_templates = ['{{if .SSHSession }}#522a27{{end}}'] [[blocks.segments]] type = "shell" style = "plain" foreground = "#6c5dbe" template = "  {{ .Name }}" [blocks.segments.properties.mapped_shell_names] pwsh = "Shell" powershell = "Shell" cmd = "Cmd" bash = "Bash" [[blocks.segments]] foreground = "#b5daa4" foreground_templates = [ "{{ if or (.Working.Changed) (.Staging.Changed) }}#f7c5a1{{ end }}", "{{ if and (gt .Ahead 0) (gt .Behind 0) }}#d04a39{{ end }}", "{{ if gt .Ahead 0 }}#B388FF{{ end }}", "{{ if gt .Behind 0 }}#B388FF{{ end }}" ] style = "plain" template = " {{ .UpstreamIcon }}{{ .HEAD }}{{if .BranchStatus }} {{ .BranchStatus }}{{ end }}{{ if .Working.Changed }}  {{ .Working.String }}{{ end }}{{ if and (.Working.Changed) (.Staging.Changed) }} |{{ end }}{{ if .Staging.Changed }}  {{ .Staging.String }}{{ end }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} " type = "git" [blocks.segments.properties] branch_template = "{{ trunc 25 .Branch }}" fetch_stash_count = true fetch_status = true fetch_upstream_icon = true [[blocks]] alignment = "right" type = "prompt" [[blocks.segments]] type = "status" style = "plain" foreground = "#b8ff75" foreground_templates = [ "{{ if gt .Code 0 }}#E06C75{{ end }}" ] template = " x{{ reason .Code }}" [[blocks.segments]] foreground = "#b8ff75" foreground_templates = [ "{{ if gt .Code 0 }}#E06C75{{ end }}" ] style = "diamond" template = " {{ .FormattedMs }} " type = "executiontime" [blocks.segments.properties] style = "roundrock" always_enabled = true [[blocks]] alignment = "left" newline = true type = "prompt" [[blocks.segments]] foreground = "#60f2f2" style = "plain" template = " {{ .Path }}" type = "path" [blocks.segments.properties] style = "full" [[blocks]] alignment = "left" newline = true type = "prompt" [[blocks.segments]] foreground = "#E06C75" style = "plain" template = "!" type = "root" [[blocks.segments]] foreground = "#6c5dbe" style = "plain" template = "❯" type = "text"