From add5b2b16fd3ff59c2d050a4036db3216ac32365 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Wed, 25 Feb 2009 18:12:28 +0100 Subject: change _load node to load many files for one node on _load node \* load all sh files in node/$_NODENAME/ split up node/laptop.sh (that was not loaded) into several small files --- bashrc/main.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bashrc/main.sh') diff --git a/bashrc/main.sh b/bashrc/main.sh index 444d204..7199867 100644 --- a/bashrc/main.sh +++ b/bashrc/main.sh @@ -58,7 +58,7 @@ _load() { esac fi - if [[ -r ${base}/${path} ]]; then + if [[ -r ${base}/${path} || ($1 == "node" && $2 == "*") ]]; then source ${base}/${path} elif [[ ${pedantic} -eq 1 ]]; then echo "error: cannot find necessary startup file: ${base}/${path}" @@ -109,4 +109,4 @@ _load common bashcomp _load dist common # load distribution specific node settings -_load node ${_DISTNAME} +_load node ${_DISTNAME} -- cgit v1.2.3