Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shosca/zsh-pew

Zsh plugin that sets up and manages virtualenvs using pew, automatically switches virtualenvs as you move directories
https://github.com/shosca/zsh-pew

zsh zsh-plugin zsh-plugins

Last synced: 8 days ago
JSON representation

Zsh plugin that sets up and manages virtualenvs using pew, automatically switches virtualenvs as you move directories

Awesome Lists containing this project

README

        

Pew Autoswitch Virtualenv
=========================

A very simple plugin that sets up and manages virtualenvs using `pew`, automatically switches virtualenvs as you move
directories

Install
-------

ZPlug_

::

zplug "shosca/zsh-pew"

Settings
--------

- ``DISABLE_PEW_AUTOACTIVATE`` will disable autoactivation on load

- ``PEW_DEFAULT_PYTHON`` sets the default python to use for virtualenv

- ``PEW_DEFAULT_REQUIREMENTS`` a requirements file for python packages to be installed by default

Commands
--------

- ``mkvirtualenv`` creates a virtualenv using `pew` for a project

- ``rmvirtualenv`` destorys a virtualenv for a project using `pew`

- ``install_requirements`` installs python requirements found in the project

- ``workon`` manually activates virtualenv

- ``enable_pew_autoactivate`` and ``disable_pew_autoactivate`` toggles pew autoactivation

.. _Zplug: https://github.com/zplug/zplug