]> git.phdru.name Git - dotfiles.git/blob - .bash_logout
Fix(lib/python/init.py): Fix stdout for readline
[dotfiles.git] / .bash_logout
1 # ~/.bash_logout: executed by bash(1) when login shell exits.
2
3 # Clean up python virtual environment on exit
4 # See https://virtualenvwrapper.readthedocs.io/en/latest/tips.html#clean-up-environments-on-exit
5
6 [ "$VIRTUAL_ENV" ] && deactivate
7
8 # when leaving the console clear the screen to increase privacy
9
10 if [ "$SHLVL" = 1 ]; then
11     [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q || clear
12 fi