aboutsummaryrefslogtreecommitdiffstats
path: root/.config/zsh/.zlogout
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2023-05-23 09:15:04 +0200
committerDavid Runge <dave@sleepmap.de>2023-05-23 09:15:04 +0200
commitd59b574b67e36ec5420cfedcbf489d9184b3a691 (patch)
tree3ad0aadc6f3a3166d8ccb99053b8260d8258f647 /.config/zsh/.zlogout
parent2fc5cf9f7eece3d993c3eba526ba5d04819b81ac (diff)
downloaddotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.tar.gz
dotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.tar.bz2
dotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.tar.xz
dotfiles-d59b574b67e36ec5420cfedcbf489d9184b3a691.zip
zsh: move configs to XDG_CONFIG_HOME with the help of ZDOTDIR
Diffstat (limited to '.config/zsh/.zlogout')
-rw-r--r--.config/zsh/.zlogout7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/zsh/.zlogout b/.config/zsh/.zlogout
new file mode 100644
index 0000000..307314b
--- /dev/null
+++ b/.config/zsh/.zlogout
@@ -0,0 +1,7 @@
+#
+# Commands executed by zsh on logout.
+#
+
+if [ $(id -u) -eq 0 ]; then
+ clear
+fi