dotfiles/uninstall.sh
osconlab f29e84dccc up
2023-03-29 14:30:12 +02:00

10 lines
241 B
Bash

#!/bin/bash
for file in $(find . -maxdepth 1 -name ".*" -type f -printf "%f\n" ); do
if [ -h ~/$file ]; then
rm -f ~/$file
fi
if [ -e ~/${file}.dtbak ]; then
mv -f ~/$file{.dtbak,}
fi
done
echo "Uninstalled"