2 # ~/.bash_logout: executed by bash(1) on logout
3 # Written 2003-2009 by Alexander Barton (alex@barton.de)
5 # This script is executed by bash(1) on logout.
8 # To make this script generic, it sources ~/bash_logout.user if it exists.
9 # So you shouldn't make changes to this script, but create your own
10 # individual ~/bash_logout.user file!
13 [ -e ~/.ConfigScripts.debug ] && echo " >> ~/.bash_logout ..."
15 [ -r ~/.bash_logout.user ] && source ~/.bash_logout.user
17 # Clean up SSH agents, if running
18 [ $SSH_AGENT_PID ] && eval `ssh-agent -k`
20 # Clear console, it it is local terminal
22 /dev/tty[0-9]*|/dev/ttyS[0-9]*)
23 [ -x /usr/bin/clear_console ] && /usr/bin/clear_console --quiet || clear
26 echo "Bye, bye, $USER!"; echo