refactor functions.zsh

This commit is contained in:
Dmytro Meleshko 2019-01-09 18:55:19 +02:00
parent d60c837494
commit 76db45d0c2

View file

@ -24,12 +24,9 @@ lazy_load() {
local command="$1"
local init_command="$2"
eval "$(cat <<EOF
$command() {
eval "$command() {
unfunction $command
$init_command
$command \$@
}
EOF
)"
}"
}