linux-scripts/options/dotfiles.sh
billypom on debian 30f9fed77a update
2025-06-28 13:08:06 -04:00

16 lines
389 B
Bash
Executable File

# ensure git and stow are installed
sudo apt install git stow
if check_dir_exists ~/code/dotfiles; then
cd ~/code/dotfiles
git pull
echo "Pulled billypom/dotfiles from github"
else
mkdir -p ~/code
cd ~/code
git clone https://github.com/billypom/dotfiles.git
echo "Cloned billypom/dotfiles from github"
fi
cd ~/code
stow --adopt dotfiles/
echo "Stowed dotfiles"