17 lines
470 B
Bash
17 lines
470 B
Bash
|
#!/usr/bin/env zsh
|
||
|
|
||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
|
||
|
if [[ -d "$DOT/functions" ]]; then
|
||
|
fpath=($DOT/functions $fpath)
|
||
|
autoload -U $DOT/functions/*(:t)
|
||
|
fi
|
||
|
|
||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
|
||
|
# Add each topic folder to fpath so that they can
|
||
|
# add functions and completion scripts.
|
||
|
for topic_folder ($ZSH/*) if [ -d $topic_folder ]; then
|
||
|
fpath=($topic_folder $fpath)
|
||
|
fi
|