From 9ae6cebc17ef06e8af47df1976f47eb309b57335 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Tue, 2 Jul 2024 16:20:07 +0200 Subject: [PATCH] Do not clear the screen upon logout --- .config/shell/logout.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/.config/shell/logout.sh b/.config/shell/logout.sh index 85fc2ff..6baa825 100644 --- a/.config/shell/logout.sh +++ b/.config/shell/logout.sh @@ -1,18 +1 @@ # This file is sourced by a login shell upon logout - -# Clear the screen (if desired) to increase privacy -if [ "$SHLVL" = 1 ]; then - if [ -x /usr/bin/clear ]; then - read -p "Clear screen? " -n 1 -r - echo - if [[ $REPLY =~ ^[Yy]$ ]]; then - /usr/bin/clear - fi - elif [ -x /usr/bin/clear_console ]; then - read -p "Clear screen? " -n 1 -r - echo - if [[ $REPLY =~ ^[Yy]$ ]]; then - /usr/bin/clear_console -q - fi - fi -fi