Add after.sh
This commit is contained in:
parent
c917a42dc4
commit
d1bf001cc7
1 changed files with 22 additions and 0 deletions
22
after.sh
Normal file
22
after.sh
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
#!/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."
|
||||
Loading…
Reference in a new issue