summaryrefslogtreecommitdiff
path: root/prune.sh
blob: d41c6bc6ee05d37ecaa7de4cd598ab17a5eab5d1 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
set -eu

find -L ~ -type l -lname "${PWD}/*" | while read -r link; do
	echo "$link"
	rm "$link"
done