diff options
Diffstat (limited to '.bash')
-rw-r--r-- | .bash/prompt.bash | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.bash/prompt.bash b/.bash/prompt.bash index da289c5..734988a 100644 --- a/.bash/prompt.bash +++ b/.bash/prompt.bash @@ -6,6 +6,9 @@ fgcolor () { #echo "\\[\\033[38;5;"$1"m\\]" echo "\033[38;5;${1}m" } +fgtcolor () { + echo "\033[38;2;$1;$2;$3m" +} bgcolor () { #echo "\\[\\033[48;5;"$1"m\\]" echo "\033[48;5;${1}m" @@ -18,7 +21,7 @@ case "$MYUID" in 0) FGC1="fgcolor 88" case "$OSNAME" in - debian) FGC2="fgcolor 25";FGC3="fgcolor 38";; + debian) FGC3="fgcolor 38";FGC2="fgtcolor 155 15 64";; 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 @@ -37,7 +40,7 @@ case "$MYUID" in *) FGC2="fgcolor 253" case "$OSNAME" in - debian) FGC1="fgcolor 25";FGC3="fgcolor 38";; + debian) FGC1="fgtcolor 155 15 64";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";; |