From 0dfb90b67253de4a8d6611a1a95553d7f64f16ff Mon Sep 17 00:00:00 2001 From: Stefan Gaiselmann Date: Fri, 29 Jan 2021 08:57:45 +0100 Subject: [PATCH] Changed prompt color to "base01" (gray) for Materna Category. --- dot_bashrc.d/executable_10.sshrc.tmpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dot_bashrc.d/executable_10.sshrc.tmpl b/dot_bashrc.d/executable_10.sshrc.tmpl index 767b066..e54f653 100644 --- a/dot_bashrc.d/executable_10.sshrc.tmpl +++ b/dot_bashrc.d/executable_10.sshrc.tmpl @@ -15,7 +15,11 @@ mySystem=$(uname -n) myFQDN="$(uname -n).$(dnsdomainname)" myCategory="{{.bash.prompt.category}}" myType="{{.chezmoi.hostname}}" +{{ if eq .chezmoi.os "windows" -}} +myPrettyName="{{.chezmoi.os}}" +{{ else -}} myPrettyName="{{.chezmoi.osRelease.prettyName}}" +{{ end -}} myNum=0 # last exit code @@ -38,7 +42,11 @@ bg_reset="\[\e[49m\]" fg_reset="\[\e[39m\]" fg_system="${sol_base3}" -{{- if eq .bash.prompt.category "AWS" }} +{{- if eq .bash.prompt.category "Materna" }} +# Materna gray +bg_system="${sol_bg_base01}" +fg_type="${sol_base01}" +{{- else if eq .bash.prompt.category "AWS" }} # AWS specific color bg_system="${sol_bg_orange}" fg_type="${sol_orange}"