#!/bin/zsh ## n4cht's mirrorfix script for Arch Linux. echo "Copying mirrorlist to /etc/pacman.d/mirrorlist.backup+[date]" sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup+`date +%y%m%d` echo "Sorting mirrors by 15 fastest and writing to /etc/pacman.d/mirrorlist" sudo reflector -l 15 --sort rate --save /etc/pacman.d/mirrorlist echo "Updating Pacman. Time to upgrade your packages!" sudo pacman -Syu