Cleanup stow path

This commit is contained in:
Marco Thomas
2022-01-24 11:37:17 +01:00
parent ba1fb5cd67
commit 1f7db961d8
5 changed files with 20 additions and 14 deletions

15
stow.sh
View File

@@ -1,9 +1,9 @@
#!/bin/bash
FILES_DIR=$HOME/dots/files
FILES_DIR=$PWD/files
OPTS=$1
echo "You are about to stow all config files."
echo "You are about to stow all config files and fonts."
echo "Do you want to proceed? [y]"
read proceed
@@ -12,9 +12,12 @@ if [ "${proceed}" != "y" ]; then
exit
fi
echo "Switching to ${FILES_DIR}"
echo "Stowing configs..."
cd $FILES_DIR
echo "STOWING..."
stow ${OPTS} -v --ignore="init.org" --target="$HOME" *
echo "DONE!"
echo "Done!"
echo "Stowing fonts..."
cd ../
stow ${OPTS} -v --target="$HOME/.local/share/fonts" fonts
echo "Done!"