dotfiles/zsh/func/do_init_functions
Eryn Wells 11ce2cd5c7 [zsh] Fix up init functions
- Use autoload +X in do_init_functions
- Properly redirect stdout and stderr in do_init_functions and init_env_vi so
  they don't print anything
2022-11-16 15:32:33 +00:00

8 lines
154 B
Bash

#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
for func in ${(P)${1}}; do
if autoload +X -Uz $func &> /dev/null; then
$func
fi
done