TillerBurr / fish-autovenv

Automatically activate/deactivate Python virtual enviroments when entering/leaving a directory

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoVenv

Fork of dgrant/fish-autovenv2, which is a fork of timothybrown/fish-autovenv

Fisher plugin to automatically activate/deactivate Python virtual enviroments upon entering/leaving a directory.

MIT License

Install

Installation with Fisher:

fisher install tillerburr/fish-autovenv

About

Do you like the way Pyenv automatically switches between enviroments when you change directories and wish you could do the same thing with standard Python 3 venvs? Well, now you can! No complicated scripts, binaries or overhead needed; AutoVenv is a single file, pure fish solution.

Usage

Upon entering a directory that contains a Python venv (or any directory above it) AutoVenv will automatically activate it for you. Likewise, when moving below the venv's parent directory AutoVenv will deactivate it! AutoVenv can also handle cases where you move directly from one venv directory to another.

Settings

set -U autovenv_enable yes|no

Enables/disables autovenv functionality.

set -U autovenv_announce yes|no

Controls whether or not a message is printed when entering/leaving/changing venvs.

License

MIT © Timothy Brown

About

Automatically activate/deactivate Python virtual enviroments when entering/leaving a directory

License:MIT License


Languages

Language:Shell 100.0%