]> git.phdru.name Git - dotfiles.git/commitdiff
.bash_logout: clear even if there is no clear_console
authorOleg Broytman <phd@phdru.name>
Fri, 5 Aug 2016 21:52:11 +0000 (00:52 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 5 Aug 2016 21:52:11 +0000 (00:52 +0300)
.bash_logout

index 4c880fdf932a798ea0162e27409fb023fa4ebe95..ccd81db926157aba9e1c23cb742583fb633a393c 100644 (file)
@@ -8,5 +8,5 @@
 # when leaving the console clear the screen to increase privacy
 
 if [ "$SHLVL" = 1 ]; then
-    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
+    [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q || clear
 fi