22 lines
No EOL
534 B
Bash
22 lines
No EOL
534 B
Bash
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
read -rp "Enter your username: " USERNAME
|
|
|
|
if ! id "$USERNAME" &>/dev/null; then
|
|
echo "Error: user '$USERNAME' does not exist."
|
|
exit 1
|
|
fi
|
|
|
|
pacman -S --needed --noconfirm git base-devel
|
|
|
|
su - "$USERNAME" <<'EOF'
|
|
git clone https://aur.archlinux.org/yay.git
|
|
cd yay
|
|
makepkg -si --noconfirm
|
|
|
|
yay -S --needed --noconfirm --removemake zsh-theme-powerlevel10k ttf-meslo-nerd coolercontrol-bin mangojuice heroic-games-launcher-bin polymc-qt5-bin open-video-downloader-bin brave-bin onlyoffice-bin
|
|
EOF
|
|
|
|
echo "Done." |