From e5101601fa06513a286645b7bfec2f885c9d54ed Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 14 Mar 2018 21:53:11 -0400 Subject: Clean up home scripts, split again --- prune.zsh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 prune.zsh (limited to 'prune.zsh') 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 -- cgit 1.4.1