aboutsummaryrefslogtreecommitdiff
path: root/etc/sh/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/sh/rc')
-rw-r--r--etc/sh/rc13
1 files changed, 10 insertions, 3 deletions
diff --git a/etc/sh/rc b/etc/sh/rc
index a08da74..9664940 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -284,12 +284,19 @@ export HISTCONTROL=ignorespace:ignoredups
eval "$(direnv hook bash)"
+
+#
+# From here on, interactive-only bash-specific things.
+#
+
case $- in
*i*)
- for f in "$HOME_ENVIRONMENT"/profile/etc/bash_completion.d/*; do
- . "$f"
- done
;;
*)
+ return
;;
esac
+
+for f in "$HOME_ENVIRONMENT"/profile/etc/bash_completion.d/*; do
+ . "$f"
+done