#!/bin/bash set -euo pipefail echo "[1/4] Updating pacman and installing prerequisites (curl, base-devel, imagemagick, glow)..." sudo pacman -Syu --noconfirm sudo pacman -S --noconfirm curl base-devel imagemagick glow echo "[2/4] Downloading and installing rustup (latest rustc/cargo)..." # curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y sudo pacman -S rustup rustup default stable echo "[3/4] Sourcing cargo environment..." source "$HOME/.cargo/env" echo " -> Installed: $(rustc --version)" echo " -> Installed: $(cargo --version)" echo "[4/4] Installing tools..." cargo install fsel@3.5.1-kiwicrab cargo install --force yazi-build cargo install resvg echo "Done!"