25 lines
626 B
Bash
Executable File
25 lines
626 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Installing paru dependencies"
|
|
sudo pacman -S base-devel git --needed --noconfirm
|
|
|
|
if ! command -v paru &>/dev/null; then
|
|
echo "Installing paru..."
|
|
TEMP_DIR=$(mktemp -d)
|
|
|
|
git clone https://aur.archlinux.org/paru.git $TEMP_DIR/paru
|
|
cd $TEMP_DIR/paru
|
|
|
|
makepkg -si --noconfirm
|
|
fi
|
|
|
|
echo "Installing packages"
|
|
sudo -v
|
|
paru -S --noconfirm --needed - <$HOME/.config/yadm/data/packages.txt
|
|
|
|
echo "Changing default shell"
|
|
sudo chsh -s /bin/fish $USER
|
|
|
|
echo "Applying arrpc fix"
|
|
sudo cp /usr/lib/systemd/user/arrpc.service /etc/systemd/system/arrpc.service
|
|
sudo systemctl enable arrpc --now |