From c2d4d251591bcdedd51752cf99aebafb8d085605 Mon Sep 17 00:00:00 2001 From: pika Date: Sat, 17 Aug 2024 16:55:22 +0200 Subject: [PATCH] amro finished --- amro.toml | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/amro.toml b/amro.toml index d822859..b537ff9 100644 --- a/amro.toml +++ b/amro.toml @@ -11,13 +11,23 @@ version = 2 # template = '' [[blocks]] +newline = true alignment = "left" type = "prompt" [[blocks.segments]] foreground = "#45F1C2" + foreground_templates = [ + "{{if .Root }}red{{end}}", + ] style = "plain" - template = " {{ .UserName }} @  {{ .HostName }} " + template = " {{ .UserName }} " + type = "session" + + [[blocks.segments]] + foreground = "#da5a96" + style = "plain" + template = "@  {{ .HostName }} " type = "session" [[blocks.segments]] @@ -31,7 +41,7 @@ type = "prompt" style = "full" [[blocks.segments]] - foreground = "#14A5AE" + foreground = "#915ada" powerline_symbol = "" style = "plain" # template = "{{ .UpstreamIcon }}{{ .HEAD }}{{ if gt .StashCount 0 }}  {{ .StashCount }}{{ end }} " @@ -62,21 +72,17 @@ type = "text" [[blocks]] alignment = "left" -newline = true -type = "prompt" +type = "plain" [transient_prompt] -foreground_templates = ["green"] -newline = true background = 'transparent' -template = '>' -# [transient_prompt] +foreground = 'magenta' +template = "" +# template = '>' # type = "status" -# background = "transparent" -# foreground_templates = [ -# "{{if gt .Code 0}}red{{end}}", -# "{{if eq .Code 0}}green{{end}}", -# ] -# template = "" +foreground_templates = [ + "{{if gt .Code 0}}red{{end}}", + "{{if eq .Code 0}}green{{end}}", +] # # foreground = "p:terminal-blue"