Some shells also use an initialisation file for each instance of a shell (eg, xterm). Typically these define command aliases and shell functions which cannot be passed via the environment. bash, for example, uses the file .bashrc. Check the manpage for your shell for full details.