I'm using virtualenv with django and so I have say two different directories say:
~/Development/site1
~/Development/site2
So to set up my enviroment I normally go to ~/Development/site1
then run source bin/activate
. Is it possible to have that command run automatically when I cd into one of these directories?
Would a bash alias suffice? or does it have to be linked to entering the specific directory?
My solution to bash alias.
In ~/.bashrc check that .bash_aliases is ran.
In ~/.bash_aliases
You could put this in your .bashrc to redefine the "cd" command: