# IRAF cshell login file.  [SITE DEPENDENT]

umask 022
if (`tty` != /dev/console) then
    stty sane
endif

if ($?iraf == 0) then
setenv	iraf	/iraf/iraf/
endif
setenv	uparm	$home/uparm/

setenv OPENWINHOME /usr/openwin
setenv LD_LIBRARY_PATH /opt/SUNWspro/lib:$OPENWINHOME/lib
#setenv LM_LICENSE_FILE /opt/SUNWspro/SunTech_License/license.dat
setenv LM_LICENSE_FILE 1700@apus
setenv PAGER	"less -C -E -M -bp512"

# Set the DISPLAY variable automatically on rlogins to different machines
setenv HOST    `uname -n`
setenv DISPLAY :0.0
set me = `who am i`     
if ($#me == 6) then
    setenv DISPLAY `echo $me[6] | sed 's/(\([^.]*\).*)/\1:0/'`
    if ($DISPLAY == "unix:0") then
	setenv DISPLAY "${HOST}:0"
    endif
endif
unset me

set	time = 30
set	osversion = `uname -r | cut -c1`
set     prompt = "$user@`uname -n | sed 's+\..*++'`% "
set	notify

set file = $iraf/unix/hlib/irafuser.csh
if (-e $file) then
source	$file
endif
set	cdpath	= ($iraf/../extern $iraf/../extern/x11iraf $iraf $iraf/pkg $iraf/noao $iraf/sys $iraf/unix $iraf/unix/boot ~)

# Set the IRAF architecture.
alias	setarch	'setenv IRAFARCH \!*'
setarch ssun
