# Setup a red prompt for root and a green one for users. BLUE="\[\033[0;34m\]" LIGHT_RED="\[\033[1;31m\]" WHITE="\[\033[1;37m\]" LIGHT_GRAY="\[\033[0;37m\]" NORMAL="\[\e[0m\]" RED="\[\e[1;31m\]" GREEN="\[\e[1;32m\]" ## ## test for xterm and if so set titlebar case $TERM in xterm*|rxvt*) TITLEBAR='\[\033]0;\u@\h\007\]' ;; *) TITLEBAR="" ;; esac if [[ $EUID == 0 ]] ; then PS1="${TITLEBAR}$RED`hostname` [ $NORMAL\w$RED ]# $NORMAL" else PS1="${TITLEBAR}$GREEN\h [ $NORMAL\w$GREEN ]\$ $NORMAL" fi alias ll='ls -l' alias zl='zlogin'