#!/bin/sh # /usr/local/bin/bash_logout # # see /etc/bashrc for a complete description how all bash source files # are related and used on this box # # this script is sourced by each user's ~/.bash_logout source /etc/functions-colors echo -e "${BOLDYELLOW}Goodbye `whoami`!${COLOR_RESET}" sleep 1 clear # Found the following online, but don't recall where to provide appropriate credit # Clear the screen and the scrollback buffer when in a virtual terminal. case "`tty`" in /dev/tty[0-9]*) CUR_CONSOLE=`fgconsole` clear chvt 63 chvt "$CUR_CONSOLE" ;; esac