Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 418 Bytes
function loadlib() {
lib=$1
[[ -f $lib ]] && . $lib || echo "Could not load $lib"
}
export DOTZSH=$HOME/.zsh
function _main() {
# loads common zsh files
for zsh in $DOTZSH/*.zsh; do
loadlib $zsh
done
# loads zsh files for only os
local OS=$(echo $OSTYPE | perl -pne 's/([a-zA-Z]+).*/$1/g')
for zsh in $DOTZSH/$OS/*.zsh; do
loadlib $zsh
done
}
_main