if -e /etc/csh.env then source /etc/csh.env endif if ($?PATH) then setenv PATH "/usr/local/bin:${PATH}:/usr/ucb:/usr/bin:/usr/etc:/bin:/usr/X11R6/bin:/usr/openwin/bin:/usr/sbin:${HOME}/:${HOME}/bin:/sbin:/usr/local/sbin:/usr/games:/etc:/usr/local/MySQL/bin:/usr/local/mysql/bin:." else setenv PATH "/usr/local/bin:/usr/ucb:/usr/bin:/usr/etc:/bin:/usr/X11R6/bin:/usr/openwin/bin:/usr/sbin:${HOME}/:${HOME}/bin:/sbin:/usr/local/sbin:/usr/games:/etc:/usr/local/MySQL/bin:/usr/local/mysql/bin:." endif unset ignoreof # determin if we are in csh or tcsh (default to tcsh if can't figure it out) set RunningShell="tcsh" if ($shell == "/bin/csh") set RunningShell="csh" if ($shell == "/sbin/csh") set RunningShell="csh" if ($shell == "/usr/bin/csh") set RunningShell="csh" if ($shell == "/usr/sbin/csh") set RunningShell="csh" if ($shell == "/usr/local/bin/csh") set RunningShell="csh" if ($shell == "/usr/local/sbin/csh") set RunningShell="csh" if ($shell == "csh") set RunningShell="csh" set type=`uname -s` set hostname=`uname -n` setenv SourceHome $HOME if ! -d ${SourceHome}/.os then if -e /usr/bin/logname then setenv LogName `logname` setenv SourceHome "~${LogName}" endif endif switch ($type) case "Linux": source $SourceHome/.os/Linux breaksw case "SunOS": set major=`uname -r | cut -c1` if ("$major" == "4") source $SourceHome/.os/SunOS if ("$major" == "5") then set minor=`uname -r | awk -F. '{print $NF}'` if ("$minor" == "11") then source $SourceHome/.os/OpenSolaris else source $SourceHome/.os/Solaris endif breaksw case "öpensolaris": source $SourceHome/.os/OpenSolaris breaksw case "BSD/OS": source $SourceHome/.os/BSDI breaksw case "FreeBSD": source $SourceHome/.os/FreeBSD breaksw case "IRIX": source $SourceHome/.os/IRIX breaksw case "IRIX64": source $SourceHome/.os/IRIX breaksw case "OpenBSD": source $SourceHome/.os/OpenBSD breaksw case "i386": set version=`uname -r` if ("$version" == "3.2") source $SourceHome/.os/SCO breaksw case "CYGWIN_NT-5.1": source $SourceHome/.os/CygWin breaksw case "CYGWIN_NT-6.2": source $SourceHome/.os/CygWin breaksw default: source $SourceHome/.os/Generic breaksw endsw if -e $SourceHome/.os/hosts/$hostname then source $SourceHome/.os/hosts/$hostname endif