diff --git a/.bashrc b/.bashrc index 12570026634..b204d77b9a3 100644 --- a/.bashrc +++ b/.bashrc @@ -1 +1,10 @@ -[ -n "$PS1" ] && source ~/.bash_profile; +# Only source ~/.bash_profile if interactive shell +# Provide some extra PATH locations for things using a non-interactive shell +# such as git-annex, mosh, and rsync via homebrew. + +if [[ -n "$PS1" ]] ; then + source ~/.bash_profile +elif + PATH=$HOME/bin:/usr/local/bin:/opt/homebrew/bin:$PATH + return +fi