dotfiles/remove-symlinks

9 lines
186 B
Text
Raw Normal View History

2021-05-13 21:42:40 -04:00
#!/bin/bash
find $HOME -maxdepth 1 -type l | while IFS= read -r symlink; do
2021-05-13 21:50:56 -04:00
if readlink "$symlink" | grep -q 'dotfiles'; then
2021-05-13 21:42:40 -04:00
echo "removing $symlink"
rm "$symlink"
fi
done