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.

29 lines
558 B

5 years ago
#!/bin/bash
echo "Unlinking individual dotfiles"
if [ -L "$HOME/.Xresources" ]; then
unlink $HOME/.Xresources
fi
if [ -L "$HOME/.Xdefaults " ]; then
unlink $HOME/.Xdefaults
fi
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/*