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 -p ~/.config/zsh/zfunc
$ cp zfunc/* ~/.config/zsh/zfunc
~/.zshrc
readonly local_shell_functions="${HOME}/.config/zsh/zfunc"

if [ -d "${local_shell_functions}" ]; then
 export FPATH="${local_shell_functions}:${FPATH}"

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