diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-26 03:56:14 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-26 03:56:14 +0200 |
commit | 01b27340302d76b4507539be7a36ae312e64d521 (patch) | |
tree | 7df83d30ea3b33810b3414f375e2bb3eabd3a309 | |
parent | 62d34f7e8b31c5a5a3d661295007182c27d02ce6 (diff) | |
download | dotfiles-01b27340302d76b4507539be7a36ae312e64d521.tar.gz dotfiles-01b27340302d76b4507539be7a36ae312e64d521.tar.xz dotfiles-01b27340302d76b4507539be7a36ae312e64d521.zip |
bashrc: load all common modules using a wildcard
-rw-r--r-- | bashrc/main.sh | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/bashrc/main.sh b/bashrc/main.sh index 911f535..5eed6ca 100644 --- a/bashrc/main.sh +++ b/bashrc/main.sh @@ -70,7 +70,7 @@ _load() { if [[ -r ${base}/${path} ]]; then source ${base}/${path} 2>&1 > /dev/null - elif [[ $1 == "node" && $2 == "*" ]]; then + elif [[ $2 == "*" ]]; then for file in ${base}/${path}; do if [[ -r $file ]]; then source $file 2>&1 > /dev/null @@ -84,46 +84,12 @@ _load() { # update first _self_update -# locale should be set first -_load common locale - -# now set a reasonable environment -_load common env - -# bash configuration -_load common shopt +_load common '*' # load internals _load dist init _load node init -# command aliases -_load common alias - -# ssh agent forwarding -_load common ssh-agent-forwarding - -# pager options -_load common pager - -# browser options -_load common browser - -# color code definitions -_load common color - -# colored output for ls -_load common dircolors - -# command prompt -_load common prompt - -# screen shelltitle magic -_load common screen - -# bash completion -_load common bashcomp - # load common distribution settings _load dist common |