Author: jhuntwork
Date: 2005-12-08 20:49:31 -0700 (Thu, 08 Dec 2005)
New Revision: 1260
Modified:
trunk/etc/bashrc
Log:
Don't like underlines in terminals
Modified: trunk/etc/bashrc
===================================================================
--- trunk/etc/bashrc 2005-12-09 01:25:41 UTC (rev 1259)
+++ trunk/etc/bashrc 2005-12-09 03:49:31 UTC (rev 1260)
@@ -5,9 +5,15 @@
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
ORANGE="\[\033[0;33m\]"
-BOLD="\[\033[0;38m\]"
WHITE="\[\033[00m\]"
+case $TERM in
+ xterm*)
+ BOLD=$WHITE ;;
+ *)
+ BOLD="\[\033[0;38m\]" ;;
+esac
+
# Prompt
if [ $EUID -eq 0 ] ; then
PS1="$BOLD\h:$RED\u | $BOLD\D{%c} $RED| \w$WHITE\n$BOLD\\$ $WHITE"
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page