############################################################################ # ksh environment Solaris 2.x john meister jan 11, 2001 - updated 18aug2004 ############################################################################# #functions ll() { ls -al $* ;} #date_ex() { date | awk '{print $3$2$6}' ;} #cp_date() { /bin/cp -p $* $*.`date | awk '{print $3$2$6}'` ;} ################################## umask 022 # basic aliases for ease of use and to protect system alias ll="/usr/bin/ls -al" alias mv="/usr/bin/mv -i" ; alias cp="/usr/bin/cp -i" ; alias rm="/usr/bin/rm -i" # if [ ! -d ~/History ] then echo "creating History directory in home account" /usr/bin/mkdir ~/History fi HISTFILE="~/History/`/usr/bin/date '+%d%b%y'.history`"; export HISTFILE HISTSIZE=1024; export HISTSIZE EDITOR=/usr/bin/vi; export EDITOR # #HISTFILE=~/History/$$sh_history; export HISTFILE ############################################################################# # PS1 prompt ############################################################################# # original version: PS1="`hostname`.`whoami`--> " # PS1=" ----------------------------------------------------- # $(/usr/bin/whoami)@$(/usr/bin/hostname) [\$PWD] # >--> "; export PS1 ############################################################################# export WHMI=$(/usr/ucb/whoami) export WHST=$(/usr/bin/hostname) export PS1="$(print '\001\015\001\0033]2; $WHMI ---> \"$WHST\" ---> $PWD \007 ----------------------------------------------------- $WHMI@$WHST [$PWD] >-->\001 ')" ############################################################################# PS2="*--> additional input required: > "; export PS2 ############################################################################# stty erase "^?" ; stty kill "^U" ; stty intr "^C" ; stty eof "^D" which resize if [ ! ? ] then echo "resize in path, executing normally..." resize fi if [ -f /usr/openwin/bin/resize ] then echo "resize not in path, found at /usr/openwin/bin/resize, executing ..." /usr/openwin/bin/resize fi echo "$WHMI profile for Solaris ksh completed `date`" /usr/bin/stty erase ^?