[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
This commit is contained in:
Eryn Wells 2022-11-16 15:31:55 +00:00
parent 4b2cef086f
commit 11ce2cd5c7
2 changed files with 3 additions and 3 deletions

View file

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