Added pacmanupdate and modified pacman-update
Added pacmanupdate script, which uses reflector to update mirrors using country from user input and modified pacman-update to use variable at begining of the file so you won't have to type your country all the time
This commit is contained in:
parent
f0d3261336
commit
75186d842f
17
aliasrc
17
aliasrc
@ -1,3 +1,6 @@
|
|||||||
|
##pacman-update country
|
||||||
|
country=CZ
|
||||||
|
|
||||||
#
|
#
|
||||||
# # ex - archive extractor
|
# # ex - archive extractor
|
||||||
# # usage: ex <file>
|
# # usage: ex <file>
|
||||||
@ -24,9 +27,21 @@ ex ()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test ()
|
||||||
|
{
|
||||||
|
echo test;
|
||||||
|
}
|
||||||
|
|
||||||
|
pacmanupdate ()
|
||||||
|
{
|
||||||
|
echo "Enter your country (like 'US' or 'CZ')"
|
||||||
|
read update
|
||||||
|
sudo reflector -c $update -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist;
|
||||||
|
}
|
||||||
|
|
||||||
export EDITOR=nano
|
export EDITOR=nano
|
||||||
|
|
||||||
alias pacman-update='sudo reflector -c "CZ" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist'
|
alias pacman-update='sudo reflector -c $country -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist'
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
|
Reference in New Issue
Block a user