Author: alexander
Date: 2007-10-07 09:09:39 -0600 (Sun, 07 Oct 2007)
New Revision: 2099
Modified:
trunk/etc/bashrc
Log:
Removed the verbose bash prompt
Modified: trunk/etc/bashrc
===================================================================
--- trunk/etc/bashrc 2007-10-07 14:52:56 UTC (rev 2098)
+++ trunk/etc/bashrc 2007-10-07 15:09:39 UTC (rev 2099)
@@ -2,28 +2,16 @@
alias ll='ls -l'
eval $(dircolors -b /etc/dircolors)
-# Colors for PS1
-RED="\[\033[0;31m\]"
-GREEN="\[\033[0;32m\]"
-ORANGE="\[\033[0;33m\]"
-WHITE="\[\033[00m\]"
-
-case $TERM in
- xterm*)
- BOLD=$WHITE ;;
- *)
- BOLD="\[\033[0;1m\]" ;;
-esac
-
-# Prompt
-if [ $EUID -eq 0 ] ; then
- PS1="$BOLD\h:$RED\u | $BOLD\D{%c} $RED| \w$WHITE\n$BOLD\\$ $WHITE"
+# Setup a red prompt for root and a green one for users.
+NORMAL="\[\e[0m\]"
+RED="\[\e[1;31m\]"
+GREEN="\[\e[1;32m\]"
+if [[ $EUID == 0 ]] ; then
+ PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL"
else
- PS1="$BOLD\h:$GREEN\u | $BOLD\D{%c} $GREEN| \w$WHITE\n$BOLD\\$ $WHITE"
+ PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL"
fi
-export PS1
-
if [ "`locale charmap 2>/dev/null`" = "UTF-8" ]
then
stty iutf8
--
http://linuxfromscratch.org/mailman/listinfo/livecd
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page