Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/darvid/zsh-poetry
🐚 Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. 🐍
https://github.com/darvid/zsh-poetry
python python-package-management virtualenv zsh zsh-plugin zsh-plugins
Last synced: 24 days ago
JSON representation
🐚 Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. 🐍
- Host: GitHub
- URL: https://github.com/darvid/zsh-poetry
- Owner: darvid
- License: mit
- Created: 2019-04-22T02:49:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-12T16:24:06.000Z (10 months ago)
- Last Synced: 2024-08-07T18:44:50.024Z (4 months ago)
- Topics: python, python-package-management, virtualenv, zsh, zsh-plugin, zsh-plugins
- Language: Shell
- Size: 9.77 KB
- Stars: 70
- Watchers: 4
- Forks: 14
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - darvid/zsh-poetry - 🐚 Simple ZSH plugin for automatically activating and deactivating Poetry-created virtualenvs. 🐍 (python)
README
[![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
![ZSH 5.0.2+](https://img.shields.io/badge/zsh-v5.0.2-orange.svg)# zsh-poetry
Automatically activates virtual environments created by [Poetry] when
changing to a project directory with a valid ``pyproject.toml``.[Poetry]: https://poetry.eustace.io/
[pyenv]: https://github.com/pyenv/pyenv## Install
```
curl -L git.io/Jinm5 > poetry.zsh
source poetry.zsh
```### Antigen
```
antigen bundle darvid/zsh-poetry
```### zplug
```
zplug "darvid/zsh-poetry"
```## Configuration
**Options:**
* `ZSH_POETRY_AUTO_ACTIVATE` (default: `1`): if set, automatically
activates virtual environments in valid project directories when
changing directories.
* `ZSH_POETRY_AUTO_DEACTIVATE` (default: `1`): if set, automatically
deactivates virtual environments when moving out of project directories.