dotfiles/unlink.sh

10 lines
251 B
Bash
Raw Normal View History

2023-10-14 22:38:11 +02:00
#!/bin/sh
2023-10-14 22:38:11 +02:00
for linkfile in ${@:-$(find .dotfiles -type f -name *-links)}; do
2023-10-14 22:38:11 +02:00
echo "# processing linkfile $linkfile..."
for link in $(cat $linkfile); do
echo "# unlinking $link..."
unlink $link
done
rm -rf $linkfile
done