git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.bash
diff options
context:
space:
mode:
authormail_redacted_for_web 2022-03-23 15:17:27 +0100
committermail_redacted_for_web 2022-03-23 15:17:27 +0100
commitefa243422f4274ef6a4b8304677ac64d2c76884d (patch)
treec340d571d3fcb3949f2c9738bc22d3a6ddda7bb9 /.bash
parente5d6012736788043b08ed70463665679b3911938 (diff)
downloaddotfiles-efa243422f4274ef6a4b8304677ac64d2c76884d.tar.bz2
less variable spam
Diffstat (limited to '.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