diff .bash_logout @ 220:1be7d2e2b2a1

.hgrc for chromebook VMs, and adopt their .bash_logout
author Steve Huston <huston@srhuston.net>
date Tue, 06 Apr 2021 18:51:42 -0400
parents 6e7913283c7a
children
line wrap: on
line diff
--- a/.bash_logout	Tue Apr 06 10:43:02 2021 -0400
+++ b/.bash_logout	Tue Apr 06 18:51:42 2021 -0400
@@ -1,3 +1,7 @@
-#if [ "$SSH_AGENT_PID" -a "$SHLVL" = "1" ] ; then
-#  eval `/usr/bin/ssh-agent -k`
-#fi
+# ~/.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