From 2a2179bb387ae7eb91c5838f09b1761a7efcac79 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 17 Aug 2024 17:19:14 +0200 Subject: [PATCH] addet some colors to git --- amro.toml | 95 +++++++++++++++++++++++++++++++++---------------------- 1 file changed, 57 insertions(+), 38 deletions(-) diff --git a/amro.toml b/amro.toml index 64038f8..a743613 100644 --- a/amro.toml +++ b/amro.toml @@ -6,53 +6,72 @@ newline = true alignment = "left" type = "prompt" - [[blocks.segments]] - foreground = "#45F1C2" - foreground_templates = [ - "{{if .Root }}red{{end}}", - ] - style = "plain" - template = " {{ .UserName }} " - type = "session" +[[blocks.segments]] +foreground = "#45F1C2" +foreground_templates = [ + "{{if .Root }}red{{end}}", +] +style = "plain" +template = " {{ .UserName }} " +type = "session" - [[blocks.segments]] - foreground = "red" - style = "plain" - template = "@" - type = "text" +[[blocks.segments]] +foreground = "red" +style = "plain" +template = "@" +type = "text" - [[blocks.segments]] - foreground = "#45F1C2" - style = "plain" - template = "  {{ .HostName }} " - type = "session" +[[blocks.segments]] +foreground = "#45F1C2" +style = "plain" +template = "  {{ .HostName }} " +type = "session" [[blocks]] newline = true alignment = "left" type = "prompt" - [[blocks.segments]] - foreground = "#0CA0D8" - style = "plain" - template = "  {{ .Path }} " - type = "path" +[[blocks.segments]] +foreground = "#0CA0D8" +style = "plain" +template = "  {{ .Path }} " +type = "path" - [blocks.segments.properties] - folder_separator_icon = "/" - style = "full" +[blocks.segments.properties] +folder_separator_icon = "/" +style = "full" - [[blocks.segments]] - foreground = "#915ada" - powerline_symbol = "" - style = "plain" - # template = "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} " - template = ' {{ .HEAD }}{{ if or (.Working.Changed) (.Staging.Changed) }}*{{ end }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}' - type = "git" +[[blocks.segments]] +type = "git" +style = "plain" +foreground = "#193549" +background = "transparent" +foreground_templates = [ + "{{ 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] - fetch_stash_count = true - fetch_upstream_icon = true +[properties] +fetch_status = 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 }} {{ if gt .Behind 0 }}⇣{{ end }}{{ if gt .Ahead 0 }}⇡{{ end }}' +# type = "git" + +[blocks.segments.properties] +fetch_stash_count = true +fetch_upstream_icon = true [[blocks]] alignment = "left" @@ -83,8 +102,8 @@ template = "" # template = '>' # type = "status" foreground_templates = [ - "{{if gt .Code 0}}red{{end}}", - "{{if eq .Code 0}}green{{end}}", + "{{if gt .Code 0}}red{{end}}", + "{{if eq .Code 0}}green{{end}}", ] # # foreground = "p:terminal-blue"