5 kx # /etc/csh.login: This file contains login defaults used by csh and tcsh.
5 kx
5 kx # Set up some environment variables:
5 kx if ($?prompt) then
5 kx umask 022
5 kx set cdpath = ( /var/spool )
5 kx set notify
5 kx set history = 100
5 kx setenv MANPATH /usr/local/man:/usr/man
5 kx setenv MINICOM "-c on"
5 kx setenv HOSTNAME "`cat /etc/HOSTNAME`"
5 kx setenv LESS "-M"
5 kx setenv LESSOPEN "|lesspipe.sh %s"
5 kx set path = ( $path /usr/games )
5 kx endif
5 kx
5 kx # If the user doesn't have a .inputrc, use the one in /etc.
5 kx if (! -r "$HOME/.inputrc") then
5 kx setenv INPUTRC /etc/inputrc
5 kx endif
5 kx
5 kx # I had problems with the backspace key installed by 'tset', but you might want
5 kx # to try it anyway instead of the section below it. I think with the right
5 kx # /etc/termcap it would work.
5 kx # eval `tset -sQ "$term"`
5 kx
5 kx # Set TERM to linux for unknown type or unset variable:
5 kx if ! $?TERM setenv TERM linux
5 kx if ("$TERM" == "") setenv TERM linux
5 kx if ("$TERM" == "unknown") setenv TERM linux
5 kx
5 kx # Set the default shell prompt:
5 kx set prompt = "%n@%m:%~%# "
5 kx
5 kx # Notify user of incoming mail. This can be overridden in the user's
5 kx # local startup file (~/.login)
5 kx biff y >& /dev/null
5 kx
5 kx # Set an empty MANPATH if none exists (this prevents some profile.d scripts
5 kx # from exiting from trying to access an unset variable):
5 kx if ! $?MANPATH setenv MANPATH ""
5 kx
5 kx # Append any additional csh scripts found in /etc/profile.d/:
5 kx [ -d /etc/profile.d ]
5 kx if ($status == 0) then
5 kx set nonomatch
5 kx foreach file ( /etc/profile.d/*.csh )
5 kx [ -x $file ]
5 kx if ($status == 0) then
5 kx source $file
5 kx endif
5 kx end
5 kx unset file nonomatch
5 kx endif