# Listing 5
# /etc/setenv_user

REAL_USER=`/usr/xpg4/bin/id -urn`
EFFECTIVE_USER=`/usr/xpg4/bin/id -un`
TERM_USER=`/usr/bin/who -m | /usr/bin/cut -d' ' -f1`
export REAL_USER EFFECTIVE_USER TERM_USER

TERM=${TERM:=AT386}
MAIL=/usr/mail/${REAL_USER:-anonymous}
PAGER=/usr/local/bin/less
LESS="-P-Less- %pb\%"
LESSSECURE=1
EDITOR=/usr/bin/vi
VISUAL=/usr/bin/vi
EXINIT="set showmode tabstop=4"

if [ "$REAL_USER" != "$TERM_USER" ]
then
        PS1=${REAL_USER:-anonymous}"("${TERM_USER:-anonymous}")"@`uname -n`':${PWD} % '
else
        PS1=${REAL_USER:-anonymous}@`uname -n`':${PWD} % '
fi

PS2='% '
PS4='$0 line ${LINENO}: '
WWW_HOME=/opt/docs/html/index.html
export TERM MAIL PAGER LESS LESSSECURE EDITOR VISUAL EXINIT PS1 PS2 PS4 WWW_HOME

alias pd=pushd
alias help=lynx

# end /etc/setenv_user

