diff options
author | June McEnroe <programble@gmail.com> | 2018-03-14 21:53:11 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2018-03-14 21:53:50 -0400 |
commit | 3a7a6d89708a62ca2efd8b36dd44fa30d461f23a (patch) | |
tree | 0d1ac8f7dcac9cd3abf4a2865e9ec5cba4725b66 /prune.zsh | |
parent | Clean up install.sh (diff) | |
download | src-3a7a6d89708a62ca2efd8b36dd44fa30d461f23a.tar.gz src-3a7a6d89708a62ca2efd8b36dd44fa30d461f23a.zip |
Clean up home scripts, split again
Diffstat (limited to 'prune.zsh')
-rwxr-xr-x | prune.zsh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/prune.zsh b/prune.zsh new file mode 100755 index 00000000..a0eb1f73 --- /dev/null +++ b/prune.zsh @@ -0,0 +1,7 @@ +#!/usr/bin/env zsh +set -o errexit -o nounset -o pipefail + +find -L ~ -type l -lname "$PWD/*" | while read linkPath; do + rm "$linkPath" + echo "$linkPath" +done |