Files
dotfiles/config-scripts/install-yay.sh

18 lines
436 B
Bash
Executable File

#!/bin/bash
# Installing needed packages
sudo pacman -S --noconfirm --needed git base-devel
# Installing yay
echo "Checking if yay is installed...."
if ! command -v yay >/dev/null 2>&1; then
echo "yay is not installed. Installing..."
mkdir -p ~/tmp/yay-install
cd ~/tmp/yay-install
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
cd
rm -rf ~/tmp/yay-install
else
echo "yay is installed. Skipping..."
fi