Skip to content

shifr/aenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

aenv

Automatic virtualenv activation

Installation

$ git clone git@github.com:shifr/aenv.git ~/.aenv
$ export ENVS_DIR="path_to_dir_with_envs" (default = ~/.envs)
$ echo 'source ~/.aenv/aenv.sh' >> ~/.bashrc (or ~/.zshrc)
$ source ~/.bashrc (or ~/.zshrc)

Configuration

You should create config file with list of your projects, one project on line: ENV_NAME:PROJECT_ROOT

Example:
$ echo "test:/home/user/Projects/TestProject" > ~/.aenv/aenv.conf
$ echo "test2:/path_to_projects/project_root" >> ~/.aenv/aenv.conf

How it works

Script checks if current dir equals dir from aenv.conf file and activate env by env_name in ENVS_DIR

About

Automatic virtualenv activation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages