The places to set environment variables, in the order that the
system sets them, are:
- The RACF® user profile
- The /etc/csh.login file, which is the system-wide
file that sets environment variables. This file is only run for login
shells.
- The $HOME/.login file, which sets environment
variables for individual users. This file is only run for login shells.
- The /etc/csh.cshrc file, which is the system-wide
file that sets shell variables, some environment variables (like PATH),
and umask. It also defines command aliases. It is used by subshells.
- The $HOME/.tcshrc file, which sets environment
variables for individual users. It is used by subshells.
- The $HOME/.cshrc file, if it is provided
for compatibility with the C shell.
Later settings take precedence. For example, the values set in $HOME/.login override
those in /etc/csh.login.