diff --git a/1-setup.sh b/1-setup.sh index 4f36ace..f2785fc 100755 --- a/1-setup.sh +++ b/1-setup.sh @@ -201,10 +201,8 @@ PKGS=( 'zsh-autosuggestions' ) -for PKG in "${PKGS[@]}"; do - echo "INSTALLING: ${PKG}" - sudo pacman -S "$PKG" --noconfirm --needed -done +installpkg="sudo pacman -S $(printf "%s " "${PKGS[@]}") --noconfirm --needed" +$installpkg # # determine processor type and install microcode diff --git a/2-user.sh b/2-user.sh index 881a28d..b1d4563 100755 --- a/2-user.sh +++ b/2-user.sh @@ -51,9 +51,8 @@ PKGS=( 'snap-pac' ) -for PKG in "${PKGS[@]}"; do - yay -S --noconfirm $PKG -done +installpkg="yay -S $(printf "%s " "${PKGS[@]}") --noconfirm --needed" +$installpkg export PATH=$PATH:~/.local/bin cp -r $HOME/ArchTitus/dotfiles/* $HOME/.config/