Fixed a bit in install.sh and swapped to yay instead of paru
This commit is contained in:
10
setup.sh
10
setup.sh
@@ -4,21 +4,21 @@ set -e
|
||||
|
||||
DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
if ! command -v paru &>/dev/null; then
|
||||
echo "Installing paru"
|
||||
if ! command -v yay &>/dev/null; then
|
||||
echo "Installing yay"
|
||||
sudo pacman -S base-devel git --needed --noconfirm
|
||||
|
||||
TEMP_DIR=$(mktemp -d)
|
||||
|
||||
git clone https://aur.archlinux.org/paru-bin.git $TEMP_DIR/paru-bin
|
||||
cd $TEMP_DIR/paru-bin
|
||||
git clone https://aur.archlinux.org/yay-bin.git $TEMP_DIR/yay-bin
|
||||
cd $TEMP_DIR/yay-bin
|
||||
|
||||
makepkg -si --noconfirm
|
||||
fi
|
||||
|
||||
echo "Installing packages"
|
||||
sudo -v
|
||||
paru -S --noconfirm --needed - <$DOTFILES_DIR/packages.txt
|
||||
yay -S --noconfirm --needed - <$DOTFILES_DIR/packages.txt
|
||||
|
||||
echo "Changing default shell"
|
||||
sudo chsh -s /bin/zsh $USER
|
||||
|
||||
Reference in New Issue
Block a user