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' 'zsh-autosuggestions'
) )
for PKG in "${PKGS[@]}"; do installpkg="sudo pacman -S $(printf "%s " "${PKGS[@]}") --noconfirm --needed"
echo "INSTALLING: ${PKG}" $installpkg
sudo pacman -S "$PKG" --noconfirm --needed
done
# #
# determine processor type and install microcode # determine processor type and install microcode

View File

@ -51,9 +51,8 @@ PKGS=(
'snap-pac' 'snap-pac'
) )
for PKG in "${PKGS[@]}"; do installpkg="yay -S $(printf "%s " "${PKGS[@]}") --noconfirm --needed"
yay -S --noconfirm $PKG $installpkg
done
export PATH=$PATH:~/.local/bin export PATH=$PATH:~/.local/bin
cp -r $HOME/ArchTitus/dotfiles/* $HOME/.config/ cp -r $HOME/ArchTitus/dotfiles/* $HOME/.config/