autoconda
Fish shell plugin to automatically activate/deactivate Python virtual enviroments upon entering/leaving a directory.
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.)