#!/usr/bin/env bash
#
# Install packages for a new Arch or Manjaro installation. Requires sudo

if [[ $euid > 0 ]]; then
  echo "requires administrative privileges"
  exit 1
fi

pacman -S --needed base-devel \
  git \
  exa \
  fzf \
  tmux \
  ripgrep \
  bat \
  ttf-ubuntu-font-family # Ubuntu Mono font for Alacritty

# https://rustup.rs/
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

# https://github.com/dandavison/delta#installation
cargo install git-delta