dots/ksh/prompt

13 lines
199 B
Text
Raw Normal View History

if [ -z "${USER}" ] ; then
USER=$LOGNAME
fi
2009-01-14 22:13:57 -05:00
if [ -n "${USER}" ] && [ ${USER} = root ] ; then
2009-01-13 01:31:32 -06:00
BASE="#"
else
BASE="$"
fi
PS1=$'\E[01;32m'"${USER} "$'\E[01;34m''$PWD'" ${BASE} "$'\E[0m'
export PS1