move activate commands to a .bashrc function called activate()