diff options
author | June McEnroe <programble@gmail.com> | 2017-09-15 11:30:20 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2017-09-15 11:30:20 -0400 |
commit | 147512b83552a097f770db85def0d9d446420d1b (patch) | |
tree | c0528989f271ac16d706170232579d8e91e780cc /prune.zsh | |
parent | Rename files directory etc (diff) | |
download | src-147512b83552a097f770db85def0d9d446420d1b.tar.gz src-147512b83552a097f770db85def0d9d446420d1b.zip |
Rename zsh scripts .zsh
Diffstat (limited to 'prune.zsh')
-rwxr-xr-x | prune.zsh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/prune.zsh b/prune.zsh new file mode 100755 index 00000000..26dd27cc --- /dev/null +++ b/prune.zsh @@ -0,0 +1,9 @@ +#!/usr/bin/env zsh +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" +done |