I'm python developer and most frequently I use buildout for managing my projects. In this case I dont ever need to run any command to activate my dependencies environment.
However, sometime I use virtualenv when buildout is to complicated for this particular case.
Recently I started playing with ruby. And noticed very useful feature. Enviourement is changing automatically when I cd
in to the project folder. It is somehow related to rvm
nad .rvmrc
file.
I'm just wondering if there are ways to hook some script on different bash commands. So than I can workon environment_name
automatically when cd
into to project folder.
So the logic as simple as:
When you cd
in the project with folder_name
, than script should run workon folder_name