* initial commit - dotfiles based on DoomHammer
This commit is contained in:
26
.shell-logout
Normal file
26
.shell-logout
Normal file
@ -0,0 +1,26 @@
|
||||
# vim: set ft=sh sw=2 et :
|
||||
|
||||
# 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
|
||||
|
||||
# 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
|
Reference in New Issue
Block a user