36 lines
877 B
Bash
Executable File
36 lines
877 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
DOTFILES_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
if ! command -v paru &>/dev/null; then
|
|
echo "Installing paru"
|
|
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
|
|
|
|
makepkg -si --noconfirm
|
|
fi
|
|
|
|
echo "Installing packages"
|
|
sudo -v
|
|
paru -S --noconfirm --needed - <$DOTFILES_DIR/packages.txt
|
|
|
|
echo "Changing default shell"
|
|
sudo chsh -s /bin/zsh $USER
|
|
|
|
echo "Setting default git branch to \"main\""
|
|
git config --global init.defaultBranch main
|
|
|
|
echo "Applying arrpc fix"
|
|
sudo cp /usr/lib/systemd/user/arrpc.service /etc/systemd/system/arrpc.service
|
|
sudo systemctl enable arrpc --now
|
|
|
|
echo "Applying stow"
|
|
cd $DOTFILES_DIR
|
|
stow fastfetch fuzzel ghostty godot hyfetch mangohud niri nvim oh-my-posh waybar wofi zsh
|