summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bashrc/main.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/bashrc/main.sh b/bashrc/main.sh
index 5eed6ca..e8e45ed 100644
--- a/bashrc/main.sh
+++ b/bashrc/main.sh
@@ -1,8 +1,5 @@
# 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
@@ -82,7 +79,7 @@ _load() {
}
# update first
-_self_update
+[[ $- != *i* ]] && _self_update
_load common '*'