diff --git a/.bash_profile b/.bash_profile index 8a8cf4b..4c8657d 100644 --- a/.bash_profile +++ b/.bash_profile @@ -19,6 +19,6 @@ set +a # where the .bashrc has to be sourced to provide a similar environment to a # terminal emulator. Found here: # https://eklitzke.org/effectively-using-bash-profile -if [[ -t 0 && -f ~/.bashrc ]]; then +if [[ -t 0 && -r ~/.bashrc ]]; then . ~/.bashrc fi diff --git a/.bashrc b/.bashrc index 4746128..b8b5964 100644 --- a/.bashrc +++ b/.bashrc @@ -1,7 +1,7 @@ # .bashrc # Source global definitions -if [ -f /etc/bashrc ]; then +if [[ -r /etc/bashrc ]]; then . /etc/bashrc fi