#
# .login -- Commands executed by csh only when logging in
#
# Your PATH maybe already set for you.
# To create your own you must know the location of all of the
# executable directories on your system.
# set path (/bin /usr/bin /etc /usr/ucb /usr/bin/X11)
#
# Add to PATH by adding our bin and curent directories to front of path
# the set path = (. $home/bin \$path)
# Handy definition
setenv HOST `hostname`
# don't let control-d logout
set ignoreeof
# This will prompt you for a terminal type
# If the system does not know it
set noglob
set term = (`tset -m ansi:ansi -m :?ansi -r -S -Q`)
if ( $status == 0 ) then
setenv TERM "$term"
endif
unset term noglob
# This is the way to determine what port you are on in csh.
set tty = `tty`
switch ( $tty:t )
case console:
# start up X
xinit 2> /dev/null
# or
# startx 2> /dev/null
exit
breaksw
case hft/*:
# Under AIX this is the console
breaksw
case tty[1-9]?:
# Under SCO this would be the name of the console
breaksw
case ttyp[1-9:
# a remote login or xterm
breaksw
endsw