summary refs log tree commit diff
path: root/prune.zsh
blob: 928fe0668ad9bbd7b87e62b5757a8b2647454bae (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