summary refs log tree commit diff
path: root/prune.zsh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xprune.zsh (renamed from prune.sh)9
1 files changed, 4 insertions, 5 deletions
diff --git a/prune.sh b/prune.zsh
index 09ed8d35..26dd27cc 100755
--- a/prune.sh
+++ b/prune.zsh
@@ -1,10 +1,9 @@
 #!/usr/bin/env zsh
-
-# Remove symbolic links in ~ to files that no longer exist.
-
 set -o errexit -o nounset -o pipefail
 
+# Remove broken symbolic links in ~.
+
 find -L ~ -type l -lname "$PWD/*" | while read link; do
-  rm "$link"
-  echo "$link"
+    rm "$link"
+    echo "$link"
 done