#!/bin/csh
if ( $?DISPLAY ) then
  if ( ":${PATH}:" !~ *:/usr/dt/bin:* ) then
    setenv PATH "${PATH}:/usr/dt/bin"
  endif
  set d = /var/dt/tmp/${USER}-`echo $DISPLAY|tr ':' '-'`
  if ( ! -d $d ) then
    echo creating $d
    mkdir $d
    chmod ugo+rwx $d
  endif
  chdir
  unsetenv cdDepth
  ttsession
  sleep 1
  dtsession &
endif
