[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Clearing Screen on Logout?



On Tue, Mar 2, 2010 at 6:52 PM, Carlos Williams <carloswill@gmail.com> wrote:
> I noticed that with Debian when I logout of my system, it doesn't
> clear the screen to the login screen via bash only (non GUI).

i have this in $HOME/.bash_logout :
# ~/.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

however a simple "clear" should be enough

bye


Reply to: