From: Simon Ruderich Date: Mon, 16 Feb 2009 18:32:36 +0000 (+0100) Subject: Add zsh logout configuration file. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=inline;h=d2063589ae52ca6cda65604b12a91080c7ce3e5f;p=config%2Fdotfiles.git Add zsh logout configuration file. --- diff --git a/zsh/logout b/zsh/logout new file mode 100644 index 0000000..e8bb4f1 --- /dev/null +++ b/zsh/logout @@ -0,0 +1,8 @@ +# Zsh configuration file loaded when zsh exits. + + +# When leaving the console clear the screen to increase privacy. Taken from +# Debian default bash files. Thanks. +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q +fi