Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
UDOC:HPC2020: Shells
UDOC:HPC2020: Shells

...

Note that CSH is not available. If you are still using it, please move to a supported shell.

Tip
titleChanging your shell

If you wish to change your default shell, please let us know via the ECMWF Support Portal and we will implement that change for you.

Once updated, note the change will only affect new sessions opened after it comes into effect.

Shell initialisation and configuration files

By default, none of the following files may be present on your account, and you will get the default settings for the system. However, you may want to customise your environment to add new variables, functions or aliases to your sessions or jobs.

...

$HOME/.profile

...

$HOME/.bash_profile

...

Suitable for your own login session settings that must only run once for the session or job (e.g. PATH).

It overrides .profile if present

...

$HOME/.bashrc

...

Suitable for your own functions and aliases to load for interactive non-login sessions.

It is not loaded automatically on login sessions

...

$HOME/.bash_logout

...

$HOME/.kshrc

...

titleSuggested settings for Bash users

If bash is your login shell and you would like to customise your environment without having to split content between ~/.bash_profile and ~/.bashrc, you could do the following:

Make sure your ~/.bash_profile contains the following snippet:

Code Block
languagebash
title~/.bash_profile
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

...