mirror of
https://github.com/CompeyDev/dotfiles.git
synced 2024-12-12 12:50:36 +00:00
install convenience install script for dotfiles
This commit is contained in:
parent
fcf18509d4
commit
631bb99545
1 changed files with 29 additions and 0 deletions
29
install.sh
Normal file
29
install.sh
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
git submodule init
|
||||||
|
git submodule update
|
||||||
|
|
||||||
|
declare -a deps=("zsh" "zsh-autosuggestions" "zsh-syntax-highlighting" "starship" "exa" "bat" "fastfetch" "stow")
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "#############################"
|
||||||
|
echo " Checking for dependencies..."
|
||||||
|
echo "#############################"
|
||||||
|
|
||||||
|
for dep in ${deps[@]}
|
||||||
|
do
|
||||||
|
if ! which $dep 2>/dev/null; then
|
||||||
|
echo "[!] Dependency $dep not found!"
|
||||||
|
pacman -Syy "$dep"
|
||||||
|
else
|
||||||
|
echo -e "\e[1A\e[K[*] FOUND: $dep"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Stowing apps for user: ${whoami}"
|
||||||
|
|
||||||
|
find * -maxdepth 1 -exec "stow -v -R -t $HOME {}" \;
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "##### ALL DONE"
|
Loading…
Reference in a new issue