mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
refactor functions.zsh
This commit is contained in:
parent
d60c837494
commit
76db45d0c2
1 changed files with 5 additions and 8 deletions
|
@ -24,12 +24,9 @@ lazy_load() {
|
||||||
local command="$1"
|
local command="$1"
|
||||||
local init_command="$2"
|
local init_command="$2"
|
||||||
|
|
||||||
eval "$(cat <<EOF
|
eval "$command() {
|
||||||
$command() {
|
unfunction $command
|
||||||
unfunction $command
|
$init_command
|
||||||
$init_command
|
$command \$@
|
||||||
$command \$@
|
}"
|
||||||
}
|
|
||||||
EOF
|
|
||||||
)"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue