Skip to content

black7375/zsh-lazyenv

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zsh-lazyenv

zsh plugin for lazy load envs and caching.
speed up start up time of zsh!!

Main fork from lazyload, evalcache.

env forks

Usage

Lazy Environments

lazyenv-enabled

Target of Environments

lazy functions

Lazy Load

lazyload <load-command> <command-name...>

Examples

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

Eval Cache

evalcache <command> <generation args...>

Examples

eval "$(hub alias -s)" to _evalcache hub alias -s

Options

  • $ZSH_EVALCACHE_DIR: cache files storage, default $HOME/.zsh-evalcache.
  • $ZSH_EVALCACHE_DISABLE: set to true if you wish to bypass evalcache.

Install

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"

manually

git clone https://github.com/black7375/zsh-lazyenv.git
source zsh-lazyenv/zsh-lazyenv.zsh

About

Environments for lazy load commands and speed up start up time of zsh

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%