addet some colors to git

This commit is contained in:
pika 2024-08-17 17:19:14 +02:00
parent 5d725c86b9
commit 2a2179bb38

View file

@ -6,53 +6,72 @@ 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"
[[blocks.segments]] [[blocks.segments]]
foreground = "#915ada" type = "git"
powerline_symbol = "" style = "plain"
style = "plain" foreground = "#193549"
# template = "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} " background = "transparent"
template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} <cyan>{{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}</>' foreground_templates = [
type = "git" "{{ if or (.Working.Changed) (.Staging.Changed) }}#a7364d{{else}}#1ea54c{{end}}",
]
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 }}"
[blocks.segments.properties] [properties]
fetch_stash_count = true fetch_status = true
fetch_upstream_icon = true fetch_upstream_icon = true
source = "cli"
[properties.mapped_branches]
"feat/*" = "🚀 "
"bug/*" = "🐛 "
"main/*" = "💎 "
"dev/*" = "⚙️ "
# foreground = "#915ada"
# powerline_symbol = ""
# style = "plain"
# # template = "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} "
# 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"