############################################################################## # Example .login file ############################################################################## # Set mail notification setenv MAIL "/usr/spool/mail/$LOGNAME" setenv MAILMSG "[You have new mail in /usr/spool/mail/$LOGNAME]" if ( -f "$MAIL" && ! -z "$MAIL") then echo "$MAILMSG" endif # set DISPLAY environment variable if (-e ~/.lastlogin) then setenv DISPLAY `cat ~/.lastlogin` endif if (! $?DISPLAY) then echo -n "DISPLAY not set - please set DISPLAY:0 " else echo "DISPLAY = $DISPLAY" echo -n "Enter new DISPLAY or hit return to accept: " endif set name=$< if ( $name != "" ) then setenv DISPLAY $name endif echo "DISPLAY is set to: $DISPLAY" echo $DISPLAY > ~/.lastlogin