diff --git a/config/zsh/logout/xdg-clear b/config/zsh/logout/xdg-clear index 414c96e..b44205b 100644 --- a/config/zsh/logout/xdg-clear +++ b/config/zsh/logout/xdg-clear @@ -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