# ~/.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
# [ "0${SHLVL}" -le 1 ] && [ -z "${SSH_TTY}" ] && [ "${TERM}" = linux ] && clear

if test -x /usr/bin/clear_console; then
    /usr/bin/clear_console -q
else
    clear
fi

# make sure sudo rights are removed.
# sudo -K 2>/dev/null || :
sudo -k >/dev/null 2>&1

# ensure good return code
