aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 8951a2ee..87046856 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -1,3 +1,8 @@
+# Give up completely if no BASH_VERSINFO (<2.0)
+if [ -z "$BASH_VERSINFO" ]; then
+ return
+fi
+
# Don't do anything if not running interactively
if [[ $- != *i* ]]; then
return