1 # ~/.bash_logout: executed by bash(1) when login shell exits.
3 # Clean up python virtual environment on exit
4 # See https://virtualenvwrapper.readthedocs.io/en/latest/tips.html#clean-up-environments-on-exit
6 [ "$VIRTUAL_ENV" ] && deactivate
8 # when leaving the console clear the screen to increase privacy
10 if [ "$SHLVL" = 1 ]; then
11 [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q || clear