zsh plugin for lazy load envs and caching.
speed up start up time of zsh!!
Main fork from lazyload, evalcache.
env forks
lazyenv-enabled
Target of Environments
lazy functions
lazyload <load-command> <command-name...>
lazyload 'source "$(brew --prefix nvm)/nvm.sh"' nvm
Load functions prefixed with init:
will be unloaded by lazyload
after first usage
load:nvm(){
source "$(brew --prefix nvm)/nvm.sh"
}
lazyload init:nvm nvm
evalcache <command> <generation args...>
eval "$(hub alias -s)"
to _evalcache hub alias -s
$ZSH_EVALCACHE_DIR
: cache files storage, default$HOME/.zsh-evalcache
.$ZSH_EVALCACHE_DISABLE
: set totrue
if you wish to bypass evalcache.
zgem bundle 'https://github.com/black7375/zsh-lazyenv.git' from:'git' use:'zsh-lazyenv.zsh'
zplugin load black7375/zsh-lazyenv
zgen load black7375/zsh-lazyenv
zgen save
antigen bundle black7375/zsh-lazyenv
antigen apply
git clone https://github.com/black7375/zsh-lazyenv $ZSH_CUSTOM/plugins/zsh-lazyenv
plugins+=(zsh-lazyenv)
zplug "black7375/zsh-lazyenv"
git clone https://github.com/black7375/zsh-lazyenv.git
source zsh-lazyenv/zsh-lazyenv.zsh