git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash/prompt.bash
diff options
context:
space:
mode:
Diffstat (limited to '.bash/prompt.bash')
-rw-r--r--.bash/prompt.bash48
1 files changed, 25 insertions, 23 deletions
diff --git a/.bash/prompt.bash b/.bash/prompt.bash
index c34e557..da289c5 100644
--- a/.bash/prompt.bash
+++ b/.bash/prompt.bash
@@ -16,37 +16,39 @@ MYUID="$(id|sed 's/.*uid=\([0-9]*\).*/\1/g')";export MYUID
# ...because "empty" will hit the "any" condition in the end :)
case "$MYUID" in
0)
+ FGC1="fgcolor 88"
case "$OSNAME" in
- debian) FGC1="fgcolor 88";FGC2="fgcolor 25";FGC3="fgcolor 38";;
- arch) FGC1="fgcolor 88";FGC2="fgcolor 24";FGC3="fgcolor 240";;
+ debian) FGC2="fgcolor 25";FGC3="fgcolor 38";;
+ arch) FGC2="fgcolor 24";FGC3="fgcolor 240";;
redhat|fedora) FGC1="fgcolor 160";FGC2="fgcolor 88";FGC3="fgcolor 203";;
# with the advent of Rocky, we'll match the time to SUSE's blue and the hostname to
# the colour of Geeko:
- #*suse|aix) FGC1="fgcolor 88";FGC2="fgcolor 22";FGC3="fgcolor 41";;
- *sles*) FGC1="fgcolor 88";FGC2="fgcolor 22";FGC3="fgcolor 83";;
- *suse|aix) FGC1="fgcolor 88";FGC2="fgcolor 30";FGC3="fgcolor 83";;
- *centos*) FGC1="fgcolor 88";FGC2="fgcolor 25";FGC3="fgcolor 208";;
- *solaris) FGC1="fgcolor 88";FGC2="fgcolor 31";FGC3="fgcolor 124";;
- ubuntu) FGC1="fgcolor 88";FGC2="fgcolor 130";FGC3="fgcolor 215";;
- rasp*) FGC1="fgcolor 88";FGC2="fgcolor 253";FGC3="fgcolor 126";;
- rocky) FGC1="fgcolor 88";FGC2="fgcolor 22";FGC3="fgcolor 41";;
- *) FGC1="fgcolor 88";FGC2="fgcolor 240";FGC3="fgcolor 244";;
+ #*suse|aix) FGC2="fgcolor 22";FGC3="fgcolor 41";;
+ *sles*) FGC2="fgcolor 22";FGC3="fgcolor 83";;
+ *suse|aix) FGC2="fgcolor 30";FGC3="fgcolor 83";;
+ *centos*) FGC2="fgcolor 25";FGC3="fgcolor 208";;
+ *solaris) FGC2="fgcolor 31";FGC3="fgcolor 124";;
+ ubuntu) FGC2="fgcolor 130";FGC3="fgcolor 215";;
+ rasp*) FGC2="fgcolor 253";FGC3="fgcolor 126";;
+ rocky) FGC2="fgcolor 22";FGC3="fgcolor 41";;
+ *) FGC2="fgcolor 240";FGC3="fgcolor 244";;
esac
;;
*)
+ FGC2="fgcolor 253"
case "$OSNAME" in
- debian) FGC1="fgcolor 25";FGC2="fgcolor 253";FGC3="fgcolor 38";;
- arch) FGC1="fgcolor 24";FGC2="fgcolor 253";FGC3="fgcolor 239";;
- redhat|fedora) FGC1="fgcolor 88";FGC2="fgcolor 253";FGC3="fgcolor 203";;
- #*suse|aix) FGC1="fgcolor 22";FGC2="fgcolor 253";FGC3="fgcolor 41";;
- *sles*) FGC1="fgcolor 22";FGC2="fgcolor 253";FGC3="fgcolor 83";;
- *suse|aix) FGC1="fgcolor 30";FGC2="fgcolor 253";FGC3="fgcolor 83";;
- *centos*) FGC1="fgcolor 25";FGC2="fgcolor 253";FGC3="fgcolor 208";;
- *solaris) FGC1="fgcolor 31";FGC2="fgcolor 253";FGC3="fgcolor 124";;
- ubuntu) FGC1="fgcolor 130";FGC2="fgcolor 253";FGC3="fgcolor 215";;
- rasp*) FGC1="fgcolor 53";FGC2="fgcolor 253";FGC3="fgcolor 126";;
- rocky) FGC1="fgcolor 22";FGC2="fgcolor 253";FGC3="fgcolor 41";;
- *) FGC1="fgcolor 240";FGC2="fgcolor 253";FGC3="fgcolor 244";;
+ debian) FGC1="fgcolor 25";FGC3="fgcolor 38";;
+ arch) FGC1="fgcolor 24";FGC3="fgcolor 239";;
+ redhat|fedora) FGC1="fgcolor 88";FGC3="fgcolor 203";;
+ #*suse|aix) FGC1="fgcolor 22";FGC3="fgcolor 41";;
+ *sles*) FGC1="fgcolor 22";FGC3="fgcolor 83";;
+ *suse|aix) FGC1="fgcolor 30";FGC3="fgcolor 83";;
+ *centos*) FGC1="fgcolor 25";FGC3="fgcolor 208";;
+ *solaris) FGC1="fgcolor 31";FGC3="fgcolor 124";;
+ ubuntu) FGC1="fgcolor 130";FGC3="fgcolor 215";;
+ rasp*) FGC1="fgcolor 53";FGC3="fgcolor 126";;
+ rocky) FGC1="fgcolor 22";FGC3="fgcolor 41";;
+ *) FGC1="fgcolor 240";FGC3="fgcolor 244";;
esac
;;
esac