This is the contents of the my_activate
file;
export PS1="(ACTIVATED)"
deactivate() {
echo "pretending to deactivate"
}
To source it, you need to run;
source my_activate
Notice how we're doing something very simular when we start a virtual environment.
source venv/bin/activate