From 70b63e82be6fd2ce59d992a4eab530fa410d61fd Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 23 Aug 2011 15:08:17 -0400 Subject: Clear screen on logout --- .zlogout | 5 +++++ dm | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .zlogout diff --git a/.zlogout b/.zlogout new file mode 100644 index 0000000..667b44e --- /dev/null +++ b/.zlogout @@ -0,0 +1,5 @@ +# when leaving the console clear the screen to increase privacy + +if [ "$SHLVL" = 1 ]; then + [ -x /usr/bin/clear ] && /usr/bin/clear -q +fi diff --git a/dm b/dm index 5dcd448..39a43a3 100755 --- a/dm +++ b/dm @@ -46,7 +46,7 @@ GLOBAL_FILES = \ .xmobarrc \ .xmonad/ \ .zsh/ \ - .zsh_logout \ + .zlogout \ bin/ \ get-val = $(shell awk '{if (match($$0, /$1/)) { print $$2 } }' $(SUBSTS_FILE)) -- cgit v1.2.3