This commit is contained in:
pika 2025-06-09 13:12:44 +02:00
parent 383e35c14a
commit 72117ea3ec

View file

@ -2,13 +2,19 @@
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 = "#E5C07B"
foreground = "#fc71a7"
style = "plain"
template = "[{{ .CurrentDate | date .Format }}]"
type = "time"
@ -16,10 +22,18 @@ type = "prompt"
[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 = "#E06C75"
foreground = "#6c5dbe"
template = "  {{ .Name }}"
[blocks.segments.properties.mapped_shell_names]
@ -29,10 +43,10 @@ cmd = "Cmd"
bash = "Bash"
[[blocks.segments]]
foreground = "#F3C267"
foreground = "#b5daa4"
foreground_templates = [
"{{ if or (.Working.Changed) (.Staging.Changed) }}#FF9248{{ end }}",
"{{ if and (gt .Ahead 0) (gt .Behind 0) }}#ff4500{{ end }}",
"{{ 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 }}"
]
@ -74,7 +88,7 @@ newline = true
type = "prompt"
[[blocks.segments]]
foreground = "#61AFEF"
foreground = "#60f2f2"
style = "plain"
template = " {{ .Path }}"
type = "path"
@ -94,7 +108,7 @@ type = "prompt"
type = "root"
[[blocks.segments]]
foreground = "#E06C75"
foreground = "#6c5dbe"
style = "plain"
template = ""
type = "text"