]> ruderich.org/simon Gitweb - config/dotfiles.git/blob - shell/logout
shell/env: Prefer ~/.tmp to ~/tmp as TMPDIR.
[config/dotfiles.git] / shell / logout
1 # Shell logout file usable by all shells.
2
3
4 # When leaving the console clear the screen to increase privacy. Taken from
5 # Debian default bash files and modified. Thanks.
6 if [ "$SHLVL" = 1 ]; then
7     if [ -x /usr/bin/clear_console ]; then
8         /usr/bin/clear_console -q
9     else
10         clear
11     fi
12 fi
13
14 # Make sure sudo rights are removed.
15 sudo -k > /dev/null 2>&1
16
17 # vim: ft=sh