Improved update-mirrors. Do not execute on non x86_64.
This commit is contained in:
parent
53513af0f7
commit
713266212f
@ -79,3 +79,12 @@ pacman_disowned(){
|
||||
virtual_env_prompt() {
|
||||
REPLY=${VIRTUAL_ENV+(${VIRTUAL_ENV:t}) }
|
||||
}
|
||||
|
||||
update-mirrors() {
|
||||
if [[ $(uname -m) != "x86_64" ]]
|
||||
then
|
||||
echo "Not supported on this architecture."
|
||||
else
|
||||
sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"
|
||||
fi
|
||||
}
|
||||
|
1
zshrc
1
zshrc
@ -20,7 +20,6 @@ alias sudo='sudo '
|
||||
alias tasks="ps -u fab"
|
||||
alias update-grub="grub-mkconfig -o /boot/grub/grub.cfg"
|
||||
alias sml2p='/home/fab/.Sync-my-L2P/Sync-my-L2P.run'
|
||||
alias update-mirrors='sh -c "reflector -p http -l 50 --sort rate | tee /etc/pacman.d/mirrorlist"'
|
||||
alias ssh='ssh '
|
||||
alias ping='ping '
|
||||
alias aur-update='pacaur -Syu --devel --noconfirm'
|
||||
|
Loading…
Reference in New Issue
Block a user