aboutsummaryrefslogtreecommitdiffstats
path: root/.bash_logout
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-06 19:04:56 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-06 19:04:56 +0800
commit4ddf40c8fe543d07738e5368194ebcb9cf06b136 (patch)
tree903eb70d94538f99b6a045abc73dac55a98b3974 /.bash_logout
parent5df7d5109d10b860e796f14051a5a2cdc1d76f60 (diff)
downloaddotfiles-4ddf40c8fe543d07738e5368194ebcb9cf06b136.tar.bz2
Update bash and profile configurations
Diffstat (limited to '.bash_logout')
-rw-r--r--.bash_logout9
1 files changed, 5 insertions, 4 deletions
diff --git a/.bash_logout b/.bash_logout
index 44b6f79..de4f5f7 100644
--- a/.bash_logout
+++ b/.bash_logout
@@ -1,6 +1,7 @@
-# /etc/skel/.bash_logout
+# ~/.bash_logout: executed by bash(1) when login shell exits.
-# This file is sourced when a login shell terminates.
+# when leaving the console clear the screen to increase privacy
-# Clear the screen for security's sake.
-clear
+if [ "$SHLVL" = 1 ]; then
+ [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
+fi