~/.bashrc
is executed for interactive non-login shells. ~/.profile
). .bashrc
is also read during non-interactive SSH command execution, it should start with a check for interactiveness: if [[ "$_" != *i* ]]; then # Not running interactively return fi
/etc/bashrc
, /etc/skel/.bashrc