Functions

The functions need to be copied into an $FPATH directory.

The filename needs to match the name of the function.

my_func
my_func() {}

Example zsh setup:

$ mkdir ~/.zfunc
~/.zshrc
readonly ext_func="${HOME}/.zfunc"

export FPATH="${ext_func}:${FPATH}"

for f in ${ext_func}; do
  # shellcheck disable=SC2046
  autoload -Uz $(ls "${f}")
done

The functions should be copied into ~/.zfunc.