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