Aliases ~/.bashrc
or ~/.zshrc
:
alias pmr='sudo reflector -c "Indonesia" -c "Singapore" -c "US" -c "China" --score 100 --latest 25 --sort rate --save /etc/pacman.d/mirrorlist --verbose'
alias update-mirror='pmr && cat /etc/pacman.d/mirrorlist > mirrorlist && gist -u 3ac7c21617513627a906d314f63a7eca mirrorlist'
Just update /etc/pacman.d/mirrorlist
:
$ pmr
Update and push to gist:
$ update-mirror
Run at Arch Linux installation:
$ curl -L https://git.io/JvPHm -o /etc/pacman.d/mirrorlist