X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=.bash_logout;h=4c880fdf932a798ea0162e27409fb023fa4ebe95;hb=97f8a1818926af6a2ba55d64b6631194a0cba129;hp=de4f5f75d7ccd3a5b62bd2ce683ed678a5cb72c2;hpb=57d4f65880c405ebf87c56594c1e86bb6e4c1841;p=dotfiles.git diff --git a/.bash_logout b/.bash_logout index de4f5f7..4c880fd 100644 --- a/.bash_logout +++ b/.bash_logout @@ -1,5 +1,10 @@ # ~/.bash_logout: executed by bash(1) when login shell exits. +# Clean up python virtual environment on exit +# See https://virtualenvwrapper.readthedocs.io/en/latest/tips.html#clean-up-environments-on-exit + +[ "$VIRTUAL_ENV" ] && deactivate + # when leaving the console clear the screen to increase privacy if [ "$SHLVL" = 1 ]; then