From 4495ee1d3d66fc993fbb844897b7e9342a8aab24 Mon Sep 17 00:00:00 2001 From: Renken Date: Wed, 7 Sep 2022 16:25:36 +0200 Subject: home: configure zsh --- nichijou/home/config/zsh/zlogout | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 nichijou/home/config/zsh/zlogout (limited to 'nichijou/home/config/zsh/zlogout') diff --git a/nichijou/home/config/zsh/zlogout b/nichijou/home/config/zsh/zlogout new file mode 100644 index 0000000..83361fd --- /dev/null +++ b/nichijou/home/config/zsh/zlogout @@ -0,0 +1,8 @@ +# ~/.zshlogout: executed by zsh(1) when login shell exits. + +# when leaving the console clear the screen to increase privacy +if [ "$SHLVL" = 1 ]; then + # XXX: Avoid hard-coding the path? + # [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q + hash clear_console && clear_console -q +fi -- cgit v1.2.3