]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
Add zsh logout configuration file.
authorSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 18:32:36 +0000 (19:32 +0100)
committerSimon Ruderich <simon@ruderich.org>
Mon, 16 Feb 2009 18:32:36 +0000 (19:32 +0100)
zsh/logout [new file with mode: 0644]

diff --git a/zsh/logout b/zsh/logout
new file mode 100644 (file)
index 0000000..e8bb4f1
--- /dev/null
@@ -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