2018-04-03 07:48:41 -07:00
|
|
|
#!/bin/bash
|
2018-12-02 07:10:16 -08:00
|
|
|
|
|
|
|
# Loop through all the dotfiles, if the file is a symlink then remove it
|
|
|
|
# Then if the backup file exists, restore it to it's original location
|
2018-04-03 07:48:41 -07:00
|
|
|
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
|
2018-12-02 07:10:16 -08:00
|
|
|
|
2018-04-03 07:48:41 -07:00
|
|
|
echo "Uninstalled"
|