2024-01-21 21:32:20 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
|
|
|
if [[ -d "$DOT/functions" ]]; then
|
|
|
|
fpath=($DOT/functions $fpath)
|
2024-01-21 21:49:27 -08:00
|
|
|
{ autoload -U $DOT/functions/*(:t); } &> /dev/null
|
2024-01-21 21:32:20 -08:00
|
|
|
fi
|
|
|
|
|
|
|
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
|
|
|
|
|
|
# Add each topic folder to fpath so that they can
|
|
|
|
# add functions and completion scripts.
|
2024-01-22 19:23:25 -08:00
|
|
|
for topic_folder ($DOT/*) if [ -d $topic_folder ]; then
|
2024-01-21 21:32:20 -08:00
|
|
|
fpath=($topic_folder $fpath)
|
|
|
|
fi
|