diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-05-04 21:06:23 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-05-04 21:06:23 +0200 |
commit | 520dcb9f6dba95066296de9f71e398cc30b84f69 (patch) | |
tree | 3af1bcb80e1da53b3fc95babb88283551cca6ad8 | |
parent | 6d1dc32071489411b92623e55841c8f191af165a (diff) | |
download | dotfiles-520dcb9f6dba95066296de9f71e398cc30b84f69.tar.gz dotfiles-520dcb9f6dba95066296de9f71e398cc30b84f69.tar.xz dotfiles-520dcb9f6dba95066296de9f71e398cc30b84f69.zip |
bashrc/main: do not update on non interactive shell but set environment
-rw-r--r-- | bashrc/main.sh | 5 |
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 '*' |