]> git.phdru.name Git - dotfiles.git/commitdiff
.shellrc: Remove .Xauthority on exit from X
authorOleg Broytman <phd@phdru.name>
Mon, 2 Apr 2018 23:26:19 +0000 (02:26 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 3 Apr 2018 13:41:29 +0000 (16:41 +0300)
.shellrc

index b4b4e05913aec791a56830ca7c01ba9b003a1c58..0cfd207e9cf22601f7ea0de7d66b421c2073b5f5 100644 (file)
--- a/.shellrc
+++ b/.shellrc
@@ -408,7 +408,7 @@ fi
 
 
 if [ "$SHLVL" -eq 1 ] && which startx >/dev/null 2>&1; then
-   X() { startx >> .Xserver.log 2>&1; cyr; }
+   X() { startx >> .Xserver.log 2>&1; cyr; rm -f .Xauthority; }
 fi
 
 x() { exit; }