blob: cc6e24440c29b4e801702101d1dab67cd68f0500 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env zsh
# Remove symbolic links in ~ to files that no longer exist.
set -o errexit -o nounset -o pipefail
paths=$(find -L ~ -type l -lname "$PWD/*")
for path in $paths; do
rm "$path"
echo "$path"
done
|