.shincludes/include.sh

11 lines
262 B
Bash

_SHINCLUDES_PATH="$(dirname $(readlink -f "${(%):-%x}"))"
for includefile in ${_SHINCLUDES_PATH}/source/*; do
. "$includefile"
done
fpath=( ${_SHINCLUDES_PATH}/autoload "${fpath[@]}" )
autoload -Uz ${_SHINCLUDES_PATH}/autoload/*(.:t)
unset _SHINCLUDES_PATH