# This is the default, standard profile provided to users. # Users are expected to edit it to meet their own needs. stty erase '^h' kill '^u' MAIL=/usr/mail/${LOGNAME:?} if [ -z "${TERM}" -o "$TERM" = "ansi" ] then echo "TERM=$TERM ?\c" read ans if [ "$ans" != "" ];then TERM=$ans fi echo "TERM=$TERM" fi # PATH is set during the login sequence. To enhance your PATH # while preserving the default settings, try: # # PATH=$PATH:"your_path" # HZ=100 export MAIL PATH TERM HZ # Process according to shell type case "$0" in -ksh) export FILE=$HOME/.kshrc # Define the ENV variable only when interactive. # If $ENV is defined, it is the name of the file which # contains further commands which customize the ksh environment. # If ksh isn't running interactively, there's no need to # run these commands. ENV="${FILE[(_$-=0)+(_=1)-_${-%%*i*}]}" ;; -sh) # # If $PWD variable exists in the environment it will # ALWAYS contain the name of the current working directory, # i.e. the output of the pwd command. # It is automatically displayed to the left of PS1 # on the command line. # PWD=""; export PWD # # Put a space between PWD and PS1 PS1=" # " # # Default command line is $PS1. If PWD is defined, command line is # $PWD$PS1. If PS0 is then defined, command line becomes $PS0$PWD$PS1. # Following example would display the system node name: # #PS0="`uname`: ";export PS0 ;; -jsh | -rsh) : ;; esac # # This function provide an easy mechanism for changing a user terminal # type easily. term() { if [ $# -eq 1 ];then echo $TERM TERM=$1;export TERM fi echo $TERM }