#!/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