Sei sulla pagina 1di 1

#-----------------------------------------------------------------------------# File: $HOME/.

bash_logout
# Author: Uwe Hermann <uwe@hermann-uwe.de>
# URL: http://www.hermann-uwe.de/files/bash_logout
# $Id: .bash_logout 486 2006-04-21 12:39:43Z uh1763 $
#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# When leaving the console clear the screen to increase privacy.
# Also clear the scroll-back buffer by switching to tty63 and back.
#-----------------------------------------------------------------------------case "$(tty)" in
/dev/tty[0-9])
t=$(v=`tty` ; echo ${v##*ty})
clear
chvt 63; chvt "$t"
;;
/dev/tty[0-9][0-9])
t=$(v=`tty` ; echo ${v##*ty})
clear
chvt 63; chvt "$t"
;;
*)
;;
esac

Potrebbero piacerti anche