## .netkorn sunnet setup file for ksh.
/bin/echo setting up sunnet environment for ksh.

COMM="clist color comment cont cycle display dlist dmatrix dprint echo erase error etascale glist help listproc movie names network parameter pattern plotlist present printf printfile printlist quit redraw repeat response save savefile savelist screen step echo exec action graph plot print read wait whatis window time value parameter"
for comm in $COMM
{    alias $comm="netcommand $comm" ; }
alias netcd='netcommand cd $PWD'
alias netpwd='netcommand pwd'
alias nset='netcommand nset'

chd() {	cd $1; netcommand cd $PWD; }

netclear() 
{
  for comm in $COMM netcd nset
     {	unalias $comm;  }
}
hash netcommand		# tell ksh to remember its location.

# /bin/echo use chd instead of cd. use nset instead of set to set SunNet variables.
/bin/echo run netclear to get out of this environment.

