#! /usr/bin/env bash PATH="$(realpath "${BASH_SOURCE[0]}")" ROOT="$(dirname "${PATH}")" function main { local module for module in "${ROOT}"/*.sh ; do if [ "${module}" != "${PATH}" ] ; then source "${module}" fi done } main