Explicitly source .bashrc in interactive shells

Because the file was never explicitly sourced, opening a new shell say,
via SSH, would not invoke .bashrc at all.
master
Jordan Atwood 2 years ago
parent b2019db748
commit 4c5f6de9e8
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 3
      src/.bash_profile

@ -62,3 +62,6 @@ export SHELLCHECK_OPTS='--color'
if [ -z "$SSH_AUTH_SOCK" ]; then if [ -z "$SSH_AUTH_SOCK" ]; then
eval "$(ssh-agent -s)" eval "$(ssh-agent -s)"
fi fi
# if running interactively, source .bashrc
[ -n "$PS1" ] && source "$HOME/.bashrc"

Loading…
Cancel
Save