updated logout script to clear console also
authorFred Hamster <fred@gruntose.com>
Sun, 16 Nov 2025 19:07:57 +0000 (14:07 -0500)
committerFred Hamster <fred@gruntose.com>
Sun, 16 Nov 2025 19:07:57 +0000 (14:07 -0500)
infobase/examples/bashisms/dot.bash_logout

index c01a5ffda585f1930858c698c3b4dcbf79adcbfe..45052d780c4970e3e91eb1bcd13148936ff89486 100644 (file)
@@ -1,7 +1,12 @@
-# runs the nechung oracle program at exit from bash.
 
+# on exit, clear the console for privacy.
+if [ "$SHLVL" = 1 ]; then
+  [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
+fi
+
+# runs the nechung oracle program at exit from bash.
 sep 79
-$FEISTY_MEOW_GENERATED_STORE/runtime/binaries/nechung 
+$FEISTY_MEOW_GENERATED_STORE/runtime/binaries/nechung
 echo
 sleep 1