summary refs log tree commit diff
path: root/prune.zsh
blob: a0eb1f731cca7e3c3c2bd02249499847f3216a1e (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 linkPath; do
    rm "$linkPath"
    echo "$linkPath"
done