dotfiles/bin/install-pkgs
2021-12-21 12:43:18 -06:00

16 lines
406 B
Bash
Executable file

#!/usr/bin/env bash
if ! $(is-executable yq); then
echo "you will need to install yq"
echo "see here for more info: https://github.com/mikefarah/yq"
fi
YAMLDOC="$HOME/.dotfiles/info/pkgs.yml"
readarray pkgs < <(yq e '.["arch"] | .[] | ... comments=""' $YAMLDOC)
sudo pacman -S $(echo ${pkgs[@]})
readarray pkgs < <(yq e '.["aur"] | .[] | ... comments=""' $YAMLDOC)
paru -S $(echo ${pkgs[@]})