harmtemolder / fish-autoconda

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

autoconda

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

MIT License

Install

Installation with fisher:

fisher add harmtemolder/fish-autoconda

(The original plugin was for omf.)

About

Timothy Brown wrote an excellent plugin to switch environments with Python 3 venvs. I forked that plugin and rewrote it to handle conda environments instead.

Usage

Upon entering a directory that contains an environment.yml file—or any directory below it—autoconda will automatically take the value of prefix from it and activate that for you. Likewise, when moving outside the environment's root directory autoconda will deactivate it! autoconda can also handle cases where you move directly from one environment directory to another.

Settings

set -U autoconda_enable yes/no: Enables/disables autoconda functionality. set -U autoconda_announce yes/no: Controls whether or not a message is printed when entering/leaving/changing environments. set -U autoconda_debug yes/no: Adds extreme verbosity for debugging.

(Bold are defaults.)

License

MIT © Harm te Molder

About

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

License:MIT License


Languages

Language:Shell 100.0%