# The purpose of this file is to tailor the user's
# environment by setting some variables which will
# be utilised regularly.
PS1=`hostname`':$PWD# '
# set your prompt string
HISTFILE=$HOME/.sh_history
# specify location of history file
EDITOR=/usr/bin/vi
# set your EDITOR variable to vi
PATH=/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/ucb: \
/usr/dt/bin:/usr/openwin/demo:/usr/openwin/bin:/etc:.
# set the PATH variable to identify executable directories
ENV=$HOME/.kshrc
# below is the preferred method for changing from /sbin/sh
# Bourne shell binary to the Korn shell.
# in the Korn shell, identify the location .kshrc file
if [ -f /usr/bin/ksh -a -x /usr/bin/ksh ]
# check that the Korn shell binary exists and is executable
then
SHELL=/usr/bin/ksh # set the SHELL variable
export PS1 HISTFILE EDITOR PATH ENV SHELL
# make all variables above available to sub shells
/usr/bin/ksh # invoke the Korn shell binary
fi