git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/prompt.bash
diff options
context:
space:
mode:
authormail_redacted_for_web 2024-05-25 12:52:14 +0200
committermail_redacted_for_web 2024-05-25 12:52:14 +0200
commitffb6d1b728a0c993792488c606dc1a5206eaec52 (patch)
tree28b089ad7cd6a25d4355b7908bb912eedfd6e98e /.bash/prompt.bash
parentfcab6b04a9852d6ab44d1a0a834715a2be34dc7f (diff)
downloaddotfiles-ffb6d1b728a0c993792488c606dc1a5206eaec52.tar.bz2
Distinguish between Leap and others (Tumbleweed), current colouring from official websitesv1.0.0
Diffstat (limited to '.bash/prompt.bash')
-rw-r--r--.bash/prompt.bash14
1 files changed, 12 insertions, 2 deletions
diff --git a/.bash/prompt.bash b/.bash/prompt.bash
index a3b22c5..b9f4703 100644
--- a/.bash/prompt.bash
+++ b/.bash/prompt.bash
@@ -37,7 +37,12 @@ case "$MYUID" in
# the colour of Geeko:
#*suse|aix) FGC2="fgcolor 22";FGC3="fgcolor 41";;
*sles*) FGC2="fgcolor 22";FGC3="fgcolor 83";;
- *suse*) FGC2="fgcolor 30";FGC3="fgcolor 83";;
+ *suse*)
+ case "$OSNAME" in
+ *leap) FGC2="fgcolor 214";FGC3="fgcolor 83";;
+ *) FGC2="fgcolor 30";FGC3="fgcolor 83";;
+ esac
+ ;;
aix) FGC2="fgcolor 238";FGC3="fgcolor 83";;
*centos*) FGC2="fgcolor 25";FGC3="fgcolor 208";;
*solaris) FGC2="fgcolor 31";FGC3="fgcolor 124";;
@@ -77,7 +82,12 @@ case "$MYUID" in
fedora) FGC1="fgcolor 88";FGC3="fgcolor 203";;
#*suse|aix) FGC1="fgcolor 22";FGC3="fgcolor 41";;
*sles*) FGC1="fgcolor 22";FGC3="fgcolor 83";;
- *suse*) FGC1="fgcolor 30";FGC3="fgcolor 83";;
+ *suse*)
+ case "$OSNAME" in
+ *leap) FGC1="fgcolor 214";FGC3="fgcolor 83";;
+ *) FGC1="fgcolor 30";FGC3="fgcolor 83";;
+ esac
+ ;;
aix) FGC1="fgcolor 238";FGC3="fgcolor 83";;
*centos*) FGC1="fgcolor 25";FGC3="fgcolor 208";;
*solaris) FGC1="fgcolor 31";FGC3="fgcolor 124";;