aboutsummaryrefslogtreecommitdiff
path: root/yay/install.sh
blob: ba7eaf7dcde92cf49fc3c03bcd2b92e0bc5f3299 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if ! (which yay > /dev/null); then
    cd $(dirname "$0")
    sudo pacman -S --needed --noconfirm git base-devel
    git clone https://aur.archlinux.org/yay.git
    cd yay
    makepkg -si
fi

yay -S --needed --noconfirm \
    $(cat ~/.dotfiles/yay/packages.txt | \
      xargs -I{} sh -c \
        "(pacman -Q {} &> /dev/null) || echo {}")
yay --save --sudo doas