fixed by claude?

This commit is contained in:
pika 2024-08-17 22:41:05 +02:00
parent b23013157f
commit da95b0863a

View file

@ -5,39 +5,34 @@ version = 2
newline = true newline = true
alignment = "left" alignment = "left"
type = "prompt" type = "prompt"
[[blocks.segments]] [[blocks.segments]]
foreground = "#45F1C2" foreground = "#45F1C2"
foreground_templates = [ foreground_templates = [
"{{if .Root }}red{{end}}", "{{if .Root }}red{{end}}",
] ]
style = "plain" style = "plain"
template = " {{ .UserName }} " template = " {{ .UserName }} "
type = "session" type = "session"
[[blocks.segments]] [[blocks.segments]]
foreground = "red" foreground = "red"
style = "plain" style = "plain"
template = "@" template = "@"
type = "text" type = "text"
[[blocks.segments]] [[blocks.segments]]
foreground = "#45F1C2" foreground = "#45F1C2"
style = "plain" style = "plain"
template = " {{ .HostName }} " template = " {{ .HostName }} "
type = "session" type = "session"
[[blocks]] [[blocks]]
newline = true newline = true
alignment = "left" alignment = "left"
type = "prompt" type = "prompt"
[[blocks.segments]] [[blocks.segments]]
foreground = "#0CA0D8" foreground = "#0CA0D8"
style = "plain" style = "plain"
template = " {{ .Path }} " template = " {{ .Path }} "
type = "path" type = "path"
[blocks.segments.properties] [blocks.segments.properties]
folder_separator_icon = "/" folder_separator_icon = "/"
style = "full" style = "full"
@ -47,64 +42,42 @@ type = "git"
style = "plain" style = "plain"
foreground = "#193549" foreground = "#193549"
background = "transparent" background = "transparent"
foreground_templates = [ 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 }}"
"{{ if or (.Working.Changed) (.Staging.Changed) }}#a7364d{{else}}#1ea54c{{end}}" [blocks.segments.properties]
]
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 }}"
[properties]
fetch_status = true fetch_status = true
fetch_upstream_icon = true fetch_upstream_icon = true
source = "cli" fetch_stash_count = true
[blocks.segments.properties.branch_icon]
[properties.mapped_branches]
"feat/*" = "🚀 " "feat/*" = "🚀 "
"bug/*" = "🐛 " "bug/*" = "🐛 "
"main/*" = "💎 " "main" = "💎 "
"dev/*" = "⚙️ " "dev" = "⚙️ "
# foreground = "#915ada" [blocks.segments.properties.template_logic]
# powerline_symbol = "" default = "#1ea54c"
# style = "plain" has_staged = "#a7364d"
# # template = "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} " has_unstaged = "#a7364d"
# template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>'
# type = "git"
[blocks.segments.properties]
fetch_stash_count = true
fetch_upstream_icon = true
[[blocks]] [[blocks]]
alignment = "left" alignment = "left"
newline = true newline = true
type = "prompt" type = "prompt"
[[blocks.segments]] [[blocks.segments]]
foreground = "#cd5e42" foreground = "#cd5e42"
style = "plain" style = "plain"
template = " " template = " "
type = "root" type = "root"
[[blocks.segments]] [[blocks.segments]]
foreground = "#CD4277" foreground = "#CD4277"
style = "plain" style = "plain"
template = "# " template = "# "
type = "text" type = "text"
[[blocks]]
alignment = "left"
type = "plain"
[transient_prompt] [transient_prompt]
background = 'transparent' background = "transparent"
foreground = 'magenta' foreground = "#CD4277"
template = "" template = "{{ if gt .Code 0 }}{{ else }}{{ end }} "
# template = '>'
# type = "status"
foreground_templates = [
"{{if gt .Code 0}}red{{end}}",
"{{if eq .Code 0}}green{{end}}",
]
# # foreground = "p:terminal-blue"
[secondary_prompt]
background = "transparent"
foreground = "#CD4277"
template = "{{ if gt .Code 0 }}{{ else }}{{ end }} "