dotfiles/zsh/func/init_zsh_functions

17 lines
364 B
Text
Raw Normal View History

2021-12-31 11:54:55 -08:00
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
autoload load_module
local myfpath="$HOME/.zsh/func"
2021-12-31 11:54:55 -08:00
for func in $myfpath/*; do
[[ ! -e "$func" || -d "$func" ]] && continue
2021-12-31 11:54:55 -08:00
local functionName=`basename $func`
[[ "$functionName" =~ "prompt_*" ]] && continue
[[ "$functionName" =~ "init_*" ]] && continue
2021-12-31 11:54:55 -08:00
autoload -Uz $functionName
done