summaryrefslogtreecommitdiff
path: root/.scripts/cleanup-homedir.sh
blob: 3764ff9dcf37bcd4cade0a43ada8c43dfd340e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# remove vim swap files
find $HOME -maxdepth 1 -type f -name '.sv*' -exec rm {} \;

pids=$(pgrep startx)
ls -1 $HOME/.serverauth.* | grep -v ${pids/ /\\|} | while read file; do
	rm "${file}"
done

rm $HOME/.xsession-errors*

# xsession manager files (maybe obsolete)
rm $HOME/.xsm*