#!/bin/zsh for RC_FILE in $(find "${0:a:h}/rc.d/" -type f | sort) do source "$RC_FILE" || { echo "something went wrong in '$RC_FILE'; aborting dotwryn load" return 1 } done return 0