feat: upgrade ohmyposh config

version 2->3 upgrade
This commit is contained in:
Devin Haska 2025-05-27 14:51:07 -07:00
parent 87c07c97e3
commit dd56a38c01
Signed by: wonderfulfrog
SSH key fingerprint: SHA256:ejOGyH9064rJiikox4ykOHLeuUg1f9l8wmJxs+MzNw0

View file

@ -1,8 +1,11 @@
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .PWD }}' console_title_template = '{{ .PWD }}'
version = 3
final_space = true
[transient_prompt]
template = '❱ '
background = 'transparent'
foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{ if eq .Code 0}}magenta{{end}}']
[[blocks]] [[blocks]]
type = 'prompt' type = 'prompt'
@ -10,24 +13,26 @@ console_title_template = '{{ .PWD }}'
newline = true newline = true
[[blocks.segments]] [[blocks.segments]]
template = '{{ .Path }}'
foreground = 'blue'
background = 'transparent'
type = 'path' type = 'path'
style = 'plain' style = 'plain'
background = 'transparent'
foreground = 'blue'
template = '{{ .Path }}'
[blocks.segments.properties] [blocks.segments.properties]
cache_duration = 'none'
style = 'full' style = 'full'
[[blocks.segments]] [[blocks.segments]]
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ .Behind }}{{ end }}{{ if gt .Ahead 0 }}⇡{{ .Ahead }}{{ end }}</>'
foreground = '#2ac3de'
background = 'transparent'
type = 'git' type = 'git'
style = 'plain' style = 'plain'
background = 'transparent'
foreground = '#2ac3de'
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ .Behind }}{{ end }}{{ if gt .Ahead 0 }}⇡{{ .Ahead }}{{ end }}</>'
[blocks.segments.properties] [blocks.segments.properties]
branch_icon = '' branch_icon = ''
cache_duration = 'none'
commit_icon = '@' commit_icon = '@'
fetch_status = true fetch_status = true
@ -37,19 +42,11 @@ console_title_template = '{{ .PWD }}'
newline = true newline = true
[[blocks.segments]] [[blocks.segments]]
template = '❱'
background = 'transparent'
type = 'text' type = 'text'
style = 'plain' style = 'plain'
foreground_templates = [ foreground_templates = ['{{if gt .Code 0}}red{{end}}', '{{ if eq .Code 0}}magenta{{end}}']
'{{if gt .Code 0}}red{{end}}',
'{{ if eq .Code 0}}magenta{{end}}',
]
background = 'transparent'
template = '❱'
[transient_prompt] [blocks.segments.properties]
foreground_templates = [ cache_duration = 'none'
'{{if gt .Code 0}}red{{end}}',
'{{ if eq .Code 0}}magenta{{end}}',
]
background = 'transparent'
template = '❱ '