Add flag for reflector in pkm

This commit is contained in:
mitchell 2022-02-28 14:07:43 -05:00
parent ff4007d988
commit 18fda58726
1 changed files with 9 additions and 2 deletions

View File

@ -32,8 +32,15 @@ function _pacman_commander -a pkm command
case i install case i install
$pkm --sync $args $pkm --sync $args
case f fetch case f fetch
reflector --latest 50 --fastest 3 --sort age --protocol https --thread 4 | argparse r/reflector -- $args
sudo tee /etc/pacman.d/mirrorlist
sudo true
if set -q _flag_reflector
reflector --latest 50 --fastest 3 --sort age --protocol https --thread 4 |
sudo tee /etc/pacman.d/mirrorlist
end
and $pkm --sync --refresh and $pkm --sync --refresh
case u update case u update
$pkm --sync --sysupgrade $args $pkm --sync --sysupgrade $args