diff --git a/zsh/golang.zsh b/zsh/golang.zsh index 9c768c1..2d98fde 100755 --- a/zsh/golang.zsh +++ b/zsh/golang.zsh @@ -8,7 +8,7 @@ # install goenv zinit ice wait lucid as'program' pick'bin/goenv' from'gh' \ - atclone'src/configure && make -C src; ./libexec/goenv init - > .zinitrc.zsh' \ + atclone'src/configure && make -C src; libexec/goenv init - > .zinitrc.zsh' \ atpull'%atclone' src'.zinitrc.zsh' nocompile'!' zinit light syndbg/goenv diff --git a/zsh/nodejs.zsh b/zsh/nodejs.zsh index 9ccc6e7..0184449 100755 --- a/zsh/nodejs.zsh +++ b/zsh/nodejs.zsh @@ -8,7 +8,8 @@ # install nodenv zinit ice wait lucid as'program' pick'bin/nodenv' from'gh' \ - atclone'src/configure && make -C src' atpull'%atclone' nocompile'!' + atclone'src/configure && make -C src; libexec/nodenv init - > .zinitrc.zsh' \ + atpull'%atclone' src'.zinitrc.zsh' nocompile'!' zinit light nodenv/nodenv # install node-build @@ -31,24 +32,6 @@ zinit light ouchxp/nodenv-nvmrc zinit ice wait lucid as'program' pick'bin/nodenv-package-*' from'gh' zinit light nodenv/nodenv-package-rehash -# lazy-load nodenv -nodenv() { - load-nodenv - nodenv "$@" -} - -_nodenv() { - load-nodenv - _nodenv "$@" -} - -compctl -K _nodenv nodenv - -load-nodenv() { - unset -f load-nodenv _nodenv nodenv - eval "$(command nodenv init -)" -} - # ============================================================================== # aliases # ============================================================================== diff --git a/zsh/python.zsh b/zsh/python.zsh index bfb47d7..5eb9a62 100644 --- a/zsh/python.zsh +++ b/zsh/python.zsh @@ -8,31 +8,14 @@ # install pyenv zinit ice wait lucid as'program' pick'bin/pyenv' from'gh' \ - atclone'src/configure && make -C src' atpull'%atclone' nocompile'!' + atclone'src/configure && make -C src; libexec/pyenv init - > .zinitrc.zsh' \ + atpull'%atclone' src'.zinitrc.zsh' nocompile'!' zinit light pyenv/pyenv zinit ice wait lucid as'program' pick'plugins/python-build/bin/python-build' \ from'gh' id-as'pyenv/python-build' zinit light pyenv/pyenv -# lazy-load pyenv -pyenv() { - load-pyenv - pyenv "$@" -} - -_pyenv() { - load-pyenv - _pyenv "$@" -} - -compctl -K _pyenv pyenv - -load-pyenv() { - unset -f load-pyenv _pyenv pyenv - eval "$(command pyenv init -)" -} - # ============================================================================== # aliases # ============================================================================== diff --git a/zsh/ruby.zsh b/zsh/ruby.zsh index 97e8a1d..37eb993 100755 --- a/zsh/ruby.zsh +++ b/zsh/ruby.zsh @@ -8,7 +8,8 @@ # Install rbenv zinit ice wait lucid as'program' pick'bin/rbenv' from'gh' \ - atclone'src/configure && make -C src' atpull'%atclone' nocompile'!' + atclone'src/configure && make -C src; libexec/rbenv init - > .zinitrc.zsh' \ + atpull'%atclone' src'.zinitrc.zsh' nocompile'!' zinit light rbenv/rbenv # install ruby-build @@ -19,24 +20,6 @@ zinit light rbenv/ruby-build zinit ice wait lucid as'program' pick'bin/rbenv-each' from'gh' zinit light rbenv/rbenv-each -# lazy-load rbenv -rbenv() { - load-rbenv - rbenv "$@" -} - -_rbenv() { - load-rbenv - _rbenv "$@" -} - -compctl -K _rbenv rbenv - -load-rbenv() { - unset -f load-rbenv _rbenv rbenv - eval "$(command rbenv init -)" -} - # ============================================================================== # aliases # ==============================================================================