Files
macos-system/bin/autoload-zshlib
2024-07-03 00:50:46 +02:00

16 lines
251 B
Bash
Executable File

#!/usr/bin/env zsh
# vi: set ft=zsh tw=80 ts=2
function autoloadZshlib() {
for fp in $fpath; do
if [[ ${fp:t} == 'zshlib.zwc' ]]; then
autoload -w $fp
break
fi
done
}
if [[ "${ZSH_EVAL_CONTEXT}" == *file ]]; then
autoloadZshlib "$@"
fi