Skip to content

davidparsson/zsh-pyenv-lazy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

zsh-pyenv-lazy

A zsh plugin for lazy loading of pyenv. The initial eval "$(pyenv init -)" is executed the first time pyenv is called.

If ZSH_PYENV_LAZY_VIRTUALENV is set to true, also call eval "$(pyenv virtualenv-init -)".

Installation

zgen

Update your ~/.zshrc with the following line:

zgen load davidparsson/zsh-pyenv-lazy

oh-my-zsh

git clone https://github.com/davidparsson/zsh-pyenv-lazy.git ~/.oh-my-zsh/custom/plugins/pyenv-lazy

Then, in your ~/.zshrc, add pyenv-lazy to your plugins variable.

N.B.

If your theme calls out to pyenv when constructing the prompt (e.g. using the pyenv element in powerlevel9k), pyenv will still be loaded immediately.