Subversion Repositories ALCASAR

Rev

Rev 40 | Rev 57 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 40 Rev 47
Line 18... Line 18...
18
	    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
18
	    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
19
	    ;;
19
	    ;;
20
	*)
20
	*)
21
	    ;;
21
	    ;;
22
    esac
22
    esac
-
 
23
 
23
#    [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
24
#    [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "	# default
-
 
25
# met un peu de couleur sur le compte 'root'
24
    if [ `id -un` = root ]; then
26
    if [ `id -un` = root ]; then
25
        PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
27
        PS1='\[\033[1;31m\]\h:\w\$\[\033[0m\] '
26
        else
28
        else
27
        PS1='\[\033[1;30m\]\h:\w\$\[\033[0m\] '
29
        PS1='\[\033[1;30m\]\h:\w\$\[\033[0m\] '
28
    fi
30
    fi