summaryrefslogtreecommitdiff
path: root/base/bash_logout
diff options
context:
space:
mode:
Diffstat (limited to 'base/bash_logout')
-rw-r--r--base/bash_logout6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/bash_logout b/base/bash_logout
new file mode 100644
index 0000000..09df5b1
--- /dev/null
+++ b/base/bash_logout
@@ -0,0 +1,6 @@
+# ~/.bash_logout: executed by bash(1) when login shell exits.
+
+# when leaving the console clear the screen to increase privacy
+if [ "$SHLVL" = 1 ]; then
+ [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
+fi