2024-07-12 16:36:02 +01:00
|
|
|
#!/bin/env bash
|
|
|
|
set -e
|
2024-07-14 02:24:59 +01:00
|
|
|
if [ ! $(which stow) ]; then
|
|
|
|
echo 'Stow is not installed! apt/dnf install stow | pacman -S stow | apk add stow' > /dev/stderr
|
|
|
|
exit 1
|
|
|
|
fi;
|
|
|
|
echo 'Stow is installed & in PATH.'
|
2024-07-12 16:36:02 +01:00
|
|
|
if [ -f $HOME/.bashrc ]; then
|
|
|
|
echo 'Removing existing bashrc...'
|
|
|
|
mv $HOME/.bashrc $HOME/.bashrc.pre-stow
|
|
|
|
fi;
|
|
|
|
|
|
|
|
echo 'All file conflicts resolved, stowing...'
|
2024-07-14 02:24:59 +01:00
|
|
|
stow -t "$HOME" .
|
2024-07-12 16:36:02 +01:00
|
|
|
echo 'Finished stowing.'
|