summary refs log tree commit diff
path: root/prune.sh
blob: 31ab30cfbbe82e7c4bafe426c24782cbd4dbd568 (plain) (blame)
1
2
3
4
5
6
7
#!/bin/sh
set -e -u

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