# MachTen (example) .login template file # An instance of csh executes the commands in the .login file in the # user's home directory (~/.login) only if it is a login shell; # ~/.login is processed after ~/.cshrc. # The login process establishes the following environment variables: # HOME -- user's home directory pathname # MACHTEN -- version of MachTen # PATH -- sequence of directories to search for commands # SHELL -- user's login shell pathname # TERM -- kind of terminal # TTY -- terminal device pathname # USER -- user's login name # VIRTUAL_MEMORY -- VM in use: "true" or "false" # Set job-wide environment variables if ($TERM == "xterm") then setenv TTY `/usr/bin/tty` endif switch ($TTY) case /dev/win* : # Uncomment to set DISPLAY for local loopback to non-MachTen X servers # setenv DISPLAY "`hostname`:0" # Inherit as set for /dev/console breaksw default : # Modify the following to augment or change PATH # setenv PATH ".:~/bin:/usr/local/bin:${PATH}" breaksw endsw # Desired file creation mask (default is 022) #umask 022 switch ($TTY) case /dev/console : # Mount desired NFS volume(s) to desktop for access by Mac apps #dtmount -t nfs -o dtnfs host:remote_path local_path # Set default X window server display setenv DISPLAY ":0" exec /usr/bin/wind breaksw case /dev/win* : breaksw default : stty crt breaksw endsw