9 lines
188 B
Text
9 lines
188 B
Text
|
#!/bin/bash
|
||
|
|
||
|
find $HOME -maxdepth 1 -type l | while IFS= read -r symlink; do
|
||
|
if readlink "$symlink" | grep -q '^dotfiles/'; then
|
||
|
echo "removing $symlink"
|
||
|
rm "$symlink"
|
||
|
fi
|
||
|
done
|