## .netcsh sunnet setup file for csh.
/bin/echo setting up sunnet environment for csh.
set COMM = ( clist color comment cont cycle display dlist dmatrix dprint echo erase error etascale glist help listproc movie names network parameter pattern plotlist present printfile printlist printf quit redraw repeat response save savefile savelist screen step exec action graph plot print read wait whatis window time value parameter)
foreach comm ( $COMM )
	alias $comm netcommand $comm
end
alias netcd 'netcommand cd $cwd'
alias netpwd 'netcommand pwd'
alias nset 'netcommand nset'
alias chd	'cd \!:1; netcommand cd $cwd'

alias setintr 'set NETPID = `netcommand pid`'
alias netintr 'kill -INT $NETPID'

alias netclear 'unalias $COMM netcd nset netintr setintr;if (-x $NETPORT) /bin/rm $NETPORT'

# /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.
