You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
707 B

5 years ago
#!/bin/bash
echo "Unlinking individual dotfiles"
if [ -L "$HOME/.Xresources" ]; then
unlink $HOME/.Xresources
5 years ago
fi
if [ -L "$HOME/.Xdefaults" ]; then
unlink $HOME/.Xdefaults
fi
if [ -d "$HOME/.processing" ]; then
if [ -f "$HOME/.processing/preferences.txt" ]; then
rm -rf $HOME/.processing/preferences.txt
fi
fi
5 years ago
5 years ago
if [ -d "$HOME/.dotfiles" ]; then
OLDIR=$PWD
cd $HOME/.dotfiles
for dir in $(find . -maxdepth 1 -type d -printf "%f\n" | grep -v '\.'); do
stow -D -d $HOME/.dotfiles -t $HOME $dir &> /dev/null
5 years ago
done
cd $OLDIR
fi
echo "Unlinking dotfiles dir"
if [ -L "$HOME/.dotfiles" ]; then
unlink $HOME/.dotfiles
fi
echo "Cleaning out dir"
rm -rf $HOME/.config/dali/out/*