refactor functions.zsh

This commit is contained in:
Dmytro Meleshko 2019-01-09 18:55:19 +02:00
parent d60c837494
commit 76db45d0c2
1 changed files with 5 additions and 8 deletions

View File

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