aboutsummaryrefslogtreecommitdiffstats
path: root/nichijou/home/config/zsh/zlogout
diff options
context:
space:
mode:
authorRenken <renken@shione.net>2022-09-07 16:25:36 +0200
committerRenken <renken@shione.net>2022-09-07 16:28:45 +0200
commit4495ee1d3d66fc993fbb844897b7e9342a8aab24 (patch)
tree65169ce78571bf4cee576c08d2645514d6ecf295 /nichijou/home/config/zsh/zlogout
parent2bfb36d80ce586f0ea51a72414f56863af8ff134 (diff)
downloadshione-4495ee1d3d66fc993fbb844897b7e9342a8aab24.tar.gz
shione-4495ee1d3d66fc993fbb844897b7e9342a8aab24.zip
home: configure zsh
Diffstat (limited to 'nichijou/home/config/zsh/zlogout')
-rw-r--r--nichijou/home/config/zsh/zlogout8
1 files changed, 8 insertions, 0 deletions
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