some ksh do not get a $USER, only a $LOGNAME. Make them happy.

This commit is contained in:
david 2009-01-12 03:06:42 -05:00
parent f19b125086
commit 256a3daad2

View file

@ -1,9 +1,12 @@
if [ $USER = root ] ; then
if [ ! $USER ] ; then
USER=$LOGNAME
fi
if [ $USER ] && [ $USER = root ] ; then
BASE="#"
else
BASE="$"
fi
PS1=$'\E[01;32m'"${USER} "$'\E[01;34m''$PWD'" ${BASE} "$'\E[0m'
export PS1