{{tag>terminal python}} ====== Activate python virtual environment in Terminator ====== ===== Command ===== Paste this in Terminator's ''Preferences > Layouts > Custom command'' bash --rcfile <(cat ${HOME}/.bashrc; echo 'export PROMPT_COMMAND="source ../venv/bin/activate; unset PROMPT_COMMAND"') -i ====== Tested on ====== * Xubuntu 20.04.1 ====== See also ====== ====== References ====== * https://stackoverflow.com/questions/31524527/using-python-virtual-environments-with-terminator