summary refs log tree commit diff
path: root/prune.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--prune.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/prune.sh b/prune.sh
new file mode 100644
index 00000000..fabe865f
--- /dev/null
+++ b/prune.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eu
+
+find -L ~/.config ~/.local -type l -lname "${PWD}/*" | while read -r link; do
+	echo "$link"
+	rm "$link"
+done