Exercise: Customising your environment

Customise your environment by adding your own commands to the .bashrc script in your home directory.

  1. Use alias to create your own version of a command that runs with your preferred options.
  2. Add a directory to the PATH environment variable so that your own scripts can be run like commands.

Close the terminal and log back in. You should see the result of these commands in your new session.

Remember that on Legion .bashrc is run both when you log in (because it’s called by .bash_profile), and when you start a new shell.

IMPORTANT On Legion, avoid adding commands to .bashrc that will display text output like welcome messages, as this will appear in the output of your jobs and can break things.