hooks: use explicit stow actions

master
Ian Mancini 3 years ago
parent 0f66741bde
commit b027b28c11

@ -6,7 +6,7 @@ ln -s "$DTTR_OUT" "$HOME/.dotfiles"
echo "Linking individual dotfiles" echo "Linking individual dotfiles"
cd "$HOME/.dotfiles" cd "$HOME/.dotfiles"
for dir in $(find . -maxdepth 1 -type d -printf "%f\n" | grep -v '\.'); do for dir in $(find . -maxdepth 1 -type d -printf "%f\n" | grep -v '\.'); do
stow -d "$HOME/.dotfiles" -t "$HOME" "$dir" stow -d "$HOME/.dotfiles" -t "$HOME" -S "$dir"
done done
ln -s "$HOME/.Xdefaults" "$HOME/.Xresources" ln -s "$HOME/.Xdefaults" "$HOME/.Xresources"

@ -22,7 +22,7 @@ done
if [ -d "$HOME/.dotfiles" ]; then if [ -d "$HOME/.dotfiles" ]; then
cd "$HOME/.dotfiles" cd "$HOME/.dotfiles"
for dir in $(find . -maxdepth 1 -type d -printf "%f\n" | grep -v '\.'); do for dir in $(find . -maxdepth 1 -type d -printf "%f\n" | grep -v '\.'); do
stow -D -d "$HOME/.dotfiles" -t "$HOME" "$dir" &> /dev/null || true stow -d "$HOME/.dotfiles" -t "$HOME" -D "$dir" &> /dev/null || true
done done
cd $OLDIR cd $OLDIR

Loading…
Cancel
Save