Clean up XDG_RUNTIME_DIR on last logout

This commit is contained in:
Danielle McLean 2016-10-23 14:48:29 +11:00
parent 735d3dac4d
commit f43d8a36fa
No known key found for this signature in database
GPG key ID: CC91589719027E94
4 changed files with 16 additions and 6 deletions

1
config/zsh/.zlogout Symbolic link
View file

@ -0,0 +1 @@
zlogout

View file

@ -0,0 +1,2 @@
#! zsh
(( $(w -h $LOGNAME | wc -l) == 1 )) && rm -rf $XDG_RUNTIME_DIR

2
config/zsh/zlogout Normal file
View file

@ -0,0 +1,2 @@
#! zsh
for f in $ZDOTDIR/logout/*(N); source $f