Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidparsson/zsh-pyenv-lazy
A zsh plugin for lazy loading of pyenv
https://github.com/davidparsson/zsh-pyenv-lazy
Last synced: about 2 months ago
JSON representation
A zsh plugin for lazy loading of pyenv
- Host: GitHub
- URL: https://github.com/davidparsson/zsh-pyenv-lazy
- Owner: davidparsson
- License: mit
- Created: 2017-10-03T09:47:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T02:33:54.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T12:11:38.110Z (about 2 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 47
- Watchers: 4
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```sh
zgen load davidparsson/zsh-pyenv-lazy
```### oh-my-zsh
```sh
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.