]> git.phdru.name Git - dotfiles.git/blobdiff - .bash_logout
.shellrc: Check if file `bash_completion` exists
[dotfiles.git] / .bash_logout
index 4c880fdf932a798ea0162e27409fb023fa4ebe95..ee262d25fa0e592f90074284e5845535ae827cf0 100644 (file)
@@ -1,12 +1,7 @@
 # ~/.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
-    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
+    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q || clear
 fi