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