Automatic Conda Environments
I have automated my process to create virtual environments in my python
projects, here is how I did it.
I’ve really been digging my new tmux session management setup. Now I have
leveled it up by adding direnv to my workflow. It will execute a shell script
whenever I cd into a directory. One thing I wanted to add to this was,
automatic activation of python environments whenever I cd into a directory, or
create a new environment if one does not exist.
https://waylonwalker.com/tmux-nav-2021/
Direnv # [1]
You can learn more about direnv [2] on their website. There
are several libraries that seem to do a similar concept, run a bash script
when I cd into a directory direnv is the one that I chose to use, but you can
likely do the same concept in other ones.
Installation # [3]
direnv is in many package repos, or can be installed from binary builds with a
one liner. See their installation [4]
instructions for more information.
curl -sfL https://direnv.net/install.sh | bash
.envrc # [...