Changeset 2099

Show
Ignore:
Timestamp:
10/07/07 09:09:39 (1 year ago)
Author:
alexander
Message:

Removed the verbose bash prompt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/etc/bashrc

    r2000 r2099  
    33eval $(dircolors -b /etc/dircolors) 
    44 
    5 # Colors for PS1 
    6 RED="\[\033[0;31m\]" 
    7 GREEN="\[\033[0;32m\]" 
    8 ORANGE="\[\033[0;33m\]" 
    9 WHITE="\[\033[00m\]" 
    10  
    11 case $TERM in 
    12         xterm*) 
    13                 BOLD=$WHITE ;; 
    14         *) 
    15                 BOLD="\[\033[0;1m\]" ;; 
    16 esac 
    17  
    18 # Prompt 
    19 if [ $EUID -eq 0 ] ; then 
    20         PS1="$BOLD\h:$RED\u | $BOLD\D{%c} $RED| \w$WHITE\n$BOLD\\$ $WHITE" 
     5# Setup a red prompt for root and a green one for users.  
     6NORMAL="\[\e[0m\]" 
     7RED="\[\e[1;31m\]" 
     8GREEN="\[\e[1;32m\]" 
     9if [[ $EUID == 0 ]] ; then 
     10        PS1="$RED\u [ $NORMAL\w$RED ]# $NORMAL" 
    2111else 
    22         PS1="$BOLD\h:$GREEN\u | $BOLD\D{%c} $GREEN| \w$WHITE\n$BOLD\\$ $WHITE
     12        PS1="$GREEN\u [ $NORMAL\w$GREEN ]\$ $NORMAL
    2313fi 
    24  
    25 export PS1 
    2614 
    2715if [ "`locale charmap 2>/dev/null`" = "UTF-8" ]