# FILE: .login # # SET PATH (in .cshrc) # INPUT TERMINAL TYPE FROM USER echo -n "TERM ($term) : " set tempterm=$< if ($tempterm != '') set term=$tempterm unset tempterm echo ' ' if ($?MANPATH) then echo MANPATH = $MANPATH else echo MANPATH not set endif # MISCELANEOUS biff y # be informed of incoming mail if ($term == xterm) biff n # get mail message (set to n if xbiff is enough) set ignoreeof # ignore the ^D as an eof for 'logout' stty decctlq # after an output is suspended by # ^S only the ^Q makes it continue. umask 066 # default permission for new files will be: (022 allows read) # FILES: user: rw group: others: # DIRS: user: rwx group: x others: x # SET TERMINAL TYPE FOR VIH & VI.IV (HEBREW EDITORS) switch ($term) case vi[123]*: case vt[123]*: setenv TERMH vt102h breaksw case sun*: setenv TERMH vt100h setenv EXINITH 'set number redraw' setenv TERMIV suniv breaksw case xterm: setenv TERMH vt102h setenv TERMIV suniv breaksw endsw ## Get a short-hostname (e.g: callisto.technion.ac.il is a pain in the neck) if (! $?SHORT_HOSTNAME) then setenv SHORT_HOSTNAME ` 'hostname' | sed 's/\..*$//' ` else echo login: SHORT_HOSTNAME is already defined to $SHORT_HOSTNAME endif ---------------------------------------------------------------------- ####### File: .logout clear echo " " echo " Good Bye" echo " " echo " "