2021-12-31 11:54:55 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
|
# Eryn Wells <eryn@erynwells.me>
|
|
|
|
|
|
|
|
|
|
autoload load_module
|
|
|
|
|
|
|
|
|
|
function init_zsh_functions
|
|
|
|
|
{
|
|
|
|
|
local myfpath="$HOME/.zsh/func"
|
|
|
|
|
|
2022-01-22 09:11:53 -08:00
|
|
|
ShellLog "Loading functions in $myfpath"
|
2021-12-31 11:54:55 -08:00
|
|
|
for func in $myfpath/*; do
|
|
|
|
|
[[ ! -e "$func" || -d "$func" ]] && continue
|
|
|
|
|
|
|
|
|
|
local functionName=`basename $func`
|
|
|
|
|
[[ "$functionName" =~ "prompt_*" ]] && continue
|
|
|
|
|
[[ "$functionName" =~ "init_*" ]] && continue
|
|
|
|
|
|
2022-01-22 09:11:53 -08:00
|
|
|
ShellLog -l debug "Loading $functionName"
|
2021-12-31 11:54:55 -08:00
|
|
|
autoload +X $functionName
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
load_module makers
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
init_zsh_functions "$@"
|