Slightly more reliable XDG_RUNTIME_DIR cleanup, still a little worrying

This commit is contained in:
Danielle McLean 2016-10-23 15:04:40 +11:00
parent 30afa33f4e
commit 6f8047bc7a

View file

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