From 4ddf40c8fe543d07738e5368194ebcb9cf06b136 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 6 Jan 2016 19:04:56 +0800 Subject: Update bash and profile configurations --- .bash_logout | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to '.bash_logout') 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 -- cgit v1.2.2