This website requires JavaScript.
Explore
Help
Sign In
dot
/
zsh
Watch
1
Star
0
Fork
You've already forked zsh
0
Code
Issues
Pull requests
Releases
Wiki
Activity
3348b8bd19
zsh
/
config
/
zsh
/
logout
/
xdg-clear
3 lines
97 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Clean up XDG_RUNTIME_DIR on last logout
2016-10-22 23:48:29 -04:00
#! zsh
Silence errors from logout/xdg-clear - on a system that manages XDG_RUNTIME_DIR for you, you probably won't be allowed to delete it on logout, which is harmless because the system manages it for you
2017-08-23 18:51:08 -04:00
(( $SHLVL == 1 && $(w -h $LOGNAME | wc -l) == 1 )) && rm -rf $XDG_RUNTIME_DIR 2>/dev/null
Reference in a new issue
Copy permalink