aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 56ab7fda..5b04f979 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -8,6 +8,12 @@ elif ((BASH_VERSINFO[0] == 2)) &&
return
fi
+# Make sure the shell is interactive
+case $- in
+ *i*) ;;
+ *) return ;;
+esac
+
# Don't do anything if running a restricted shell
if shopt -q restricted_shell ; then
return