mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 04:17:22 +00:00
Add flag for reflector in pkm
This commit is contained in:
parent
ff4007d988
commit
18fda58726
1 changed files with 9 additions and 2 deletions
|
|
@ -32,8 +32,15 @@ function _pacman_commander -a pkm command
|
|||
case i install
|
||||
$pkm --sync $args
|
||||
case f fetch
|
||||
reflector --latest 50 --fastest 3 --sort age --protocol https --thread 4 |
|
||||
sudo tee /etc/pacman.d/mirrorlist
|
||||
argparse r/reflector -- $args
|
||||
|
||||
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
|
||||
case u update
|
||||
$pkm --sync --sysupgrade $args
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue