addet git colors

This commit is contained in:
pika 2024-08-17 23:08:55 +02:00
parent 993c1a76f3
commit 221591a994

View file

@ -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