Files
dotfiles/install.sh

23 lines
512 B
Bash
Executable File

#! /bin/bash
source scripts/p.sh
source scripts/color.sh
# ============== CONFIG ==============
d=$(detectDistro)
if [[ $d == "Debian" ]]; then
sudo apt install -y curl
elif [[ $d == "Arch" ]]; then
sudo pacman -Sy curl
fi
p i stow
if [[ $? == 0 ]]; then
# Link dotfile home to $HOME
echo -e "${GREEN}[+] Symlinking dotfiles...${ENDCOLOR}"
stow -v -t $HOME home --adopt
else
echo -e "${YELLOW}[E] Installation not finished. Reboot your system and run the script again.${ENDCOLOR}"
fi