This commit is contained in:
pika 2025-03-17 13:33:40 +01:00
parent 5cf9b70cb0
commit 75f336a32a

View file

@ -1,8 +1,16 @@
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}' console_title_template = '{{ .Shell }} in {{ .Folder }}'
version = 3
final_space = true
[secondary_prompt]
template = ' '
foreground = 'magenta'
background = 'transparent'
[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 +18,26 @@ alignment = 'left'
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]]
type = 'git' template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
style = 'plain'
foreground = 'p:grey' foreground = 'p:grey'
background = 'transparent' background = 'transparent'
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>' type = 'git'
style = 'plain'
[blocks.segments.properties] [blocks.segments.properties]
branch_icon = '' branch_icon = ''
cache_duration = 'none'
commit_icon = '@' commit_icon = '@'
fetch_status = true fetch_status = true
@ -36,13 +46,14 @@ type = 'rprompt'
overflow = 'hidden' overflow = 'hidden'
[[blocks.segments]] [[blocks.segments]]
type = 'executiontime' template = '{{ .FormattedMs }}'
style = 'plain'
foreground = 'yellow' foreground = 'yellow'
background = 'transparent' background = 'transparent'
template = '{{ .FormattedMs }}' type = 'executiontime'
style = 'plain'
[blocks.segments.properties] [blocks.segments.properties]
cache_duration = 'none'
threshold = 5000 threshold = 5000
[[blocks]] [[blocks]]
@ -51,24 +62,11 @@ alignment = 'left'
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 = ' '
[secondary_prompt]
foreground = 'magenta'
background = 'transparent'
template = ' '