diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-25 18:12:28 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-02-25 18:12:28 +0100 |
commit | add5b2b16fd3ff59c2d050a4036db3216ac32365 (patch) | |
tree | aedc0658bc96b0a2f17446d031ec4fd936879ae9 /bashrc/main.sh | |
parent | 1563c73c299bc1659134071b37961b8477e36efe (diff) | |
download | dotfiles-add5b2b16fd3ff59c2d050a4036db3216ac32365.tar.gz dotfiles-add5b2b16fd3ff59c2d050a4036db3216ac32365.tar.xz dotfiles-add5b2b16fd3ff59c2d050a4036db3216ac32365.zip |
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
Diffstat (limited to 'bashrc/main.sh')
-rw-r--r-- | bashrc/main.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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} |