summary refs log tree commit diff
path: root/prune.sh
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
ext linkJune McEnroe 2019-07-26Update Dark.terminalJune McEnroe 2019-07-26Lighten dark whiteJune McEnroe 2019-07-25Add png.3 man pageJune McEnroe 2019-07-25Use scheme to style HTMLsJune McEnroe 2019-07-25Don't match comments in strings in makeJune McEnroe 2019-07-25Generate index.html with links from bin.7June McEnroe 2019-07-24Warn when date has changedJune McEnroe 2019-07-24Add whenJune McEnroe 2019-07-24Remove histedit from bitJune McEnroe