Configuring Your Environment

Example .bashrc file

Bash is the default shell for users beginning after May of 2018. The following is the default .bashrc file provided by the Center For Research Computing (CRC).

if [ -r /opt/crc/Modules/current/init/bash ]; then
        source /opt/crc/Modules/current/init/bash
fi

The PATH variable and other environment variables within .bashrc file can be modified, but you must keep the first conditional intact if you would like convenient access to the global configuration that is maintained by the Center for Research Computing. Below this if statement you may add any custom functions or aliases as you see fit.


Example .cshrc file:

C shell (tcsh) was the previous default for CRC accounts. The following is the default .cshrc file that is created for you when your account is established.

# Source System cshrc file
if ( -r /opt/crc/Modules/current/init/csh ) then
        source /opt/crc/Modules/current/init/csh
endif

If C shell is your preferred shell, it can be made your default. Simply contact CRCSupport@nd.edu to request a shell change.


Fixing the cluster "module" program

When running the module command returns "module: command not found", your login scripts may have been corrupted. Run the following script while logged into a CRC machine to remedy this:

 $ /opt/crc/usr/local/bin/crc_setup

This will recreate the Public/ directory if it does not exist, and ensure a default .bashrc file exists. If errors persist, contact CRCSupport@nd.edu.