From 520dcb9f6dba95066296de9f71e398cc30b84f69 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 4 May 2012 21:06:23 +0200 Subject: bashrc/main: do not update on non interactive shell but set environment --- bashrc/main.sh | 5 +---- 1 file changed, 1 insertion(+), 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 '*' -- cgit v1.2.3