summaryrefslogtreecommitdiffstats
path: root/bashrc/main.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc/main.sh')
-rw-r--r--bashrc/main.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/bashrc/main.sh b/bashrc/main.sh
index 0982f6e..e967e53 100644
--- a/bashrc/main.sh
+++ b/bashrc/main.sh
@@ -62,10 +62,16 @@ _load() {
esac
fi
- if [[ -r ${base}/${path} || ($1 == "node" && $2 == "*") ]]; then
- source ${base}/${path} 2>&1 > /dev/null
+ if [[ -r ${base}/${path} ]]; then
+ source ${base}/${path} 2>&1 > /dev/null
+ elif [[ $1 == "node" && $2 == "*" ]]; then
+ for file in ${base}/${path}; do
+ if [[ -r $file ]]; then
+ source $file 2>&1 > /dev/null
+ fi
+ done
elif [[ ${pedantic} -eq 1 ]]; then
- echo "error: cannot find necessary startup file: ${base}/${path}"
+ echo "error: cannot find necessary startup file: ${base}/${path}"
fi
}