[zsh] Add do_init_functions to run an array of functions
This commit is contained in:
parent
abf94e7104
commit
f97f1bda34
1 changed files with 8 additions and 0 deletions
8
zsh/func/do_init_functions
Normal file
8
zsh/func/do_init_functions
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env zsh
|
||||||
|
# Eryn Wells <eryn@erynwells.me>
|
||||||
|
|
||||||
|
for func in ${(P)${1}}; do
|
||||||
|
if autoload -Uz $func &>-; then
|
||||||
|
$func
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Add table
Add a link
Reference in a new issue