From 221591a994c40255af76fa85886298ca5e5626cb Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 17 Aug 2024 23:08:55 +0200 Subject: [PATCH] addet git colors --- amro.toml | 41 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/amro.toml b/amro.toml index 6e1e7b4..7a06321 100644 --- a/amro.toml +++ b/amro.toml @@ -1,6 +1,25 @@ #"$schema" = "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json" version = 2 final_space = true +console_title_template = " {{ .Folder }} :: {{if .Root}}Admin{{end}}" + +[palette] +main-bg = "transparent" +terminal-red = "#f7768e" +pistachio-green = "#9ece6a" +terminal-green = "#73daca" +terminal-yellow = "#e0af68" +terminal-blue = "#7aa2f7" +celeste-blue = "#b4f9f8" +light-sky-blue = "#7dcfff" +terminal-white = "#c0caf5" +white-blue = "#a9b1d6" +blue-bell = "#9aa5ce" +pastal-grey = "#cfc9c2" +terminal-magenta = "#bb9af7" +blue-black = "#565f89" +terminal-black = "#414868" +t-background = "p:main-bg" [[blocks]] newline = true @@ -27,6 +46,7 @@ type = "session" newline = true alignment = "left" type = "prompt" + [[blocks.segments]] foreground = "#0CA0D8" style = "plain" @@ -38,12 +58,25 @@ style = "full" [[blocks.segments]] type = "git" style = "plain" -foreground = "#193549" -background = "transparent" +foreground = "p:light-sky-blue" foreground_templates = [ - "{{ if or (.Working.Changed) (.Staging.Changed) }}#a7364d{{else}}#1ea54c{{end}}" + "{{ if or (.Working.Changed) (.Staging.Changed) }}p:terminal-red{{ end }}", + "{{ if and (gt .Ahead 0) (gt .Behind 0)}}p:light-sky-blue {{ end }}", + "{{ if gt .Ahead 0 }}p:terminal-blue{{ end }}", + "{{ if gt .Behind 0 }}p:celeste-blue{{ 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 }}" +template = "({{ .HEAD}})" + + [blocks.segments.properties] +fetch_status = true +branch_icon = " " + +[[blocks.segments]] +type = "status" +style = "plain" +foreground = "p:terminal-red" +template = " " + [properties] fetch_status = true fetch_upstream_icon = true