From: Mike Frysinger Date: Wed, 4 May 2022 13:13:47 +0000 (-0400) Subject: bash_profile: skip bashrc on non-interactive terminals X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c508d4c98b31dd86f449eda6d521fe6537ccc70c;p=home.git bash_profile: skip bashrc on non-interactive terminals --- diff --git a/.profile.d/ROOT-bash_profile b/.profile.d/ROOT-bash_profile index d1fb79b..178d748 100644 --- a/.profile.d/ROOT-bash_profile +++ b/.profile.d/ROOT-bash_profile @@ -1 +1,3 @@ -. ~/.bashrc +case $- in +*i*) . ~/.bashrc ;; +esac