summary refs log tree commit diff
path: root/prune.zsh
blob: db85a9d10b21a12532b1aae3195304a417ba4f90 (plain) (blame)
1
2
3
4
5
6
7
#!/usr/bin/env zsh
set -o errexit -o nounset -o pipefail

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