aboutsummaryrefslogtreecommitdiffstats
path: root/.zlogout
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-03-21 09:57:41 +0100
committerDavid Runge <dave@sleepmap.de>2017-03-21 09:57:41 +0100
commit0bd054ffeeb74b37972b8a6b79bdc4f03eb94722 (patch)
tree165e98afa35e5aad79cd71c8e0e4ffb13eecbb98 /.zlogout
parent0b7c1e4174320c63604210bdfeb23936f6c8985c (diff)
downloaddotfiles-0bd054ffeeb74b37972b8a6b79bdc4f03eb94722.tar.gz
dotfiles-0bd054ffeeb74b37972b8a6b79bdc4f03eb94722.tar.bz2
dotfiles-0bd054ffeeb74b37972b8a6b79bdc4f03eb94722.tar.xz
dotfiles-0bd054ffeeb74b37972b8a6b79bdc4f03eb94722.zip
.zlogout: Using clear, when ending root session.
Diffstat (limited to '.zlogout')
-rw-r--r--.zlogout3
1 files changed, 3 insertions, 0 deletions
diff --git a/.zlogout b/.zlogout
index 92e4350..5b5bf1c 100644
--- a/.zlogout
+++ b/.zlogout
@@ -1,3 +1,6 @@
#
# Commands executed by zsh on logout.
#
+if [ $(id -u) == 0 ]; then
+ clear
+fi