From ALICE Documentation

bashrc login script

If you have certain commands executed every time you log in (which includes every time a job starts), you can add them to your $HOME/.bashrc file. This file is a shell script that gets executed every time you log in.

Examples to include:

  • modifying your $PS1 (to tweak your shell prompt)
  • printing information about the current/jobs environment (echoing environment variables, etc.)
  • Avoid using module load statements in your $HOME/.bashrc file
  • Don’t directly edit your .bashrc file: if there’s an error in your .bashrc file, you might not be able to log in again. In order to prevent that, use another file to test your changes, then copy them over when you tested the script.

The basic .bashrc file created when you obtain an ALICE account contains:

 # .bashrc
 # Source global definitions
 if [ -f /etc/bashrc ]; then
 	. /etc/bashrc
 # Uncomment the following line if you don't like systemctl's auto-paging feature:
 # export SYSTEMD_PAGER=
 # User specific aliases and functions
 module load gcc
 module load slurm

As you can see this file calls /etc/bashrc. This is a system wide configuration file that we construct and control to incorporate all system specific pecularies you do not want to bother about.