dotfiles/bin/install-pkgs

17 lines
400 B
Text
Raw Permalink Normal View History

2021-12-20 19:12:53 -06:00
#!/usr/bin/env bash
if ! $(is-executable yq); then
2022-07-06 11:55:14 -05:00
echo "you will need to install yq"
echo "see here for more info: https://github.com/mikefarah/yq"
2021-12-20 19:12:53 -06:00
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[@]})