Download and install all the packages simultaneously

This commit is contained in:
Vivek Sundaray 2021-11-06 21:55:19 +05:30
parent 4f39828af4
commit 2394ad2a98
2 changed files with 4 additions and 7 deletions

View File

@ -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

View File

@ -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/