/ondir_virtualenv

Bash command to activate python virtualenv when entering on dir

Primary LanguageShell

Ondir -> VirtualEnv

Just a simple bash script to activate the corresponding virtualenv when entering a directory

For this to work, you will need to be using virtualenvwrapper

Installation

  • Paste the new cd function in your ~/.bashrc or ~/.zshrc file
  • Apply with source ~/.bashrc or source ~/.zshrc
  • Done