summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc/main.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bashrc/main.sh b/bashrc/main.sh
index cd5c5c4..253c943 100644
--- a/bashrc/main.sh
+++ b/bashrc/main.sh
@@ -1,5 +1,8 @@
# this file is sourced by all bash shells on startup
+# test for interactive shell
+[[ $- != *i* ]] && return
+
# return if this script is executed twice
[[ -n $(declare -p _DOTFILES_DIR 2>/dev/null) ]] && return
@@ -121,7 +124,7 @@ _load() {
}
# update first
-[[ $- == *i* ]] && _self_update
+_self_update
_load common '*'