2024-04-07 11:47:08 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
2024-04-02 12:42:37 +01:00
|
|
|
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
|
2024-04-07 12:19:37 +01:00
|
|
|
declare -a deps=("zsh" "zsh-autosuggestions" "zsh-syntax-highlighting" "starship" "exa" "bat" "fastfetch")
|
2024-04-02 12:42:37 +01:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "#############################"
|
|
|
|
echo " Checking for dependencies..."
|
|
|
|
echo "#############################"
|
|
|
|
|
|
|
|
for dep in ${deps[@]}
|
|
|
|
do
|
|
|
|
if ! which $dep 2>/dev/null; then
|
|
|
|
echo "[!] Dependency $dep not found!"
|
2024-04-07 11:52:07 +01:00
|
|
|
sudo pacman -Syy --noconfirm "$dep"
|
2024-04-02 12:42:37 +01:00
|
|
|
else
|
|
|
|
echo -e "\e[1A\e[K[*] FOUND: $dep"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo ""
|
2024-04-07 12:19:37 +01:00
|
|
|
echo "Symlinking configs for user: ${whoami}"
|
2024-04-02 12:42:37 +01:00
|
|
|
|
2024-04-07 12:19:37 +01:00
|
|
|
find * -exec "ln -s -f {} $HOME/{}" \;
|
2024-04-02 12:42:37 +01:00
|
|
|
|
|
|
|
echo ""
|
|
|
|
echo "##### ALL DONE"
|