.dotfiles/.bin/rankmirrors-personal-pref

6 lines
355 B
Bash
Executable file

#!/bin/env sh
echo "#Server = https://archive.archlinux.org/repos/$(date +"%Y/%m/%d")/\$repo/os/\$arch"
curl -Ls "https://archlinux.org/mirrorlist/?country=AT&country=BE&country=CZ&country=DK&country=FI&country=FR&country=DE&country=IT&country=LU&country=NL&country=PL&protocol=https&ip_version=4" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors