addet final colors

This commit is contained in:
pika 2024-08-17 23:30:43 +02:00
parent a27f60a344
commit 2e0dfc4322

118
amro.toml
View file

@ -27,17 +27,17 @@ alignment = "left"
type = "prompt"
[[blocks.segments]]
foreground = "#45F1C2"
foreground = "p:terminal-magenta"
style = "plain"
template = " {{ .UserName }}"
type = "session"
[[blocks.segments]]
foreground = "red"
foreground = "p:terminal-black"
style = "plain"
template = "󰁥 "
type = "text"
[[blocks.segments]]
foreground = "#45F1C2"
foreground = "p:terminal-magenta"
style = "plain"
template = " {{ .HostName }} "
type = "session"
@ -48,7 +48,7 @@ alignment = "left"
type = "prompt"
[[blocks.segments]]
foreground = "#0CA0D8"
foreground = "p:blue-black"
style = "plain"
template = " {{ .Path }} "
type = "path"
@ -77,50 +77,86 @@ style = "plain"
foreground = "p:terminal-red"
template = " "
[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 }} <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]]
alignment = "right"
overflow = "hide"
type = "prompt"
[[blocks.segments]]
type = "node"
style = "plain"
foreground = "p:pistachio-green"
template = " {{ .Full }} "
[[blocks.segments]]
type = "php"
style = "plain"
foreground = "p:terminal-blue"
template = " {{ .Full }} "
[[blocks.segments]]
type = "python"
style = "plain"
foreground = "p:terminal-yellow"
template = " {{ .Full }}"
[[blocks.segments]]
type = "julia"
style = "plain"
foreground = "p:terminal-magenta"
template = " {{ .Full }}"
[[blocks.segments]]
type = "ruby"
style = "plain"
foreground = "p:terminal-red"
template = " {{ .Full}}"
[[blocks.segments]]
type = "go"
style = "plain"
foreground = "p:light-sky-blue"
template = "ﳑ {{ .Full}}"
[[blocks.segments]]
type = "command"
style = "plain"
foreground = "p:white-blue"
[blocks.segments.properties]
command = "git log --pretty=format:%cr -1 || date +%H:%M:%S"
shell = "bash"
[[blocks]]
alignment = "left"
newline = true
type = "prompt"
[[blocks.segments]]
foreground = "#cd5e42"
style = "plain"
template = " "
type = "root"
[[blocks.segments]]
foreground = "#CD4277"
style = "plain"
template = "# "
type = "text"
[[blocks]]
alignment = "left"
type = "plain"
[transient_prompt]
background = 'transparent'
foreground = 'magenta'
template = ""
# template = '>'
type = "prompt"
[[blocks.segments]]
style = "plain"
foreground_templates = [
"{{if gt .Code 0}}red{{end}}",
"{{if eq .Code 0}}green{{end}}",
"{{if gt .Code 0}}p:terminal-red{{end}}",
"{{if eq .Code 0}}p:pistachio-green{{end}}",
]
# # foreground = "p:terminal-blue"
template = ""
type = "text"
newline = true
[secondary_prompt]
background = "transparent"
foreground = "p:terminal-blue"
template = ""
[transient_prompt]
type = "status"
background = "transparent"
foreground_templates = [
"{{if gt .Code 0}}terminal-red{{end}}",
"{{if eq .Code 0}}p:pistachio-green{{end}}",
]
# foreground = "p:terminal-blue"
template = ""