diff --git a/dotfiles.sh b/dotfiles.sh index 4621172..0acd58a 100755 --- a/dotfiles.sh +++ b/dotfiles.sh @@ -126,9 +126,11 @@ packages() { fi echo "$PACKAGE_LIST" > "$PACKAGE_FILE" elif [ "$1" = "install" ]; then - # Install core packages - sudo pacman -S --needed --noconfirm "$(cat "$PACKAGE_FILE")" - # For AUR packages, run: -S - < packages + # Grab everything off enabled official repositories that is in the list + CORE_LIST="$(pacman -Ssq | grep -xf $PACKAGE_FILE)" + + # Install core packages, answer no to pacman questions (honor Ignore) + yes n | sudo pacman -S --needed $(echo "$CORE_LIST") fi }