Browse Source

update reflector command

pull/1/head
10sr 10 years ago
parent
commit
fe784e6ebb
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      shrc

+ 5
- 5
shrc View File

@@ -449,7 +449,7 @@ __my_pacman_update_mirrorlist_with_reflector(){
cmd="$(expr "$(grep -m 1 reflector $ml)" : '# With: *\(.*\)')" cmd="$(expr "$(grep -m 1 reflector $ml)" : '# With: *\(.*\)')"
if test -z "$cmd" if test -z "$cmd"
then then
cmd="reflector --verbose -l 5 --sort rate --save $ml"
cmd="reflector --verbose --countries Japan --latest 5 --sort rate --save $ml"
fi fi
echo ">>> $cmd ..." 1>&2 echo ">>> $cmd ..." 1>&2
sudo sh -c "$cmd" sudo sh -c "$cmd"
@@ -458,8 +458,8 @@ null type reflector && test -f /etc/pacman.d/mirrorlist && \
alias reflect_mirrorlist=__my_pacman_update_mirrorlist_with_reflector alias reflect_mirrorlist=__my_pacman_update_mirrorlist_with_reflector


null type apt-get && { null type apt-get && {
alias aupgrade="sudo apt-get autoremove --yes && \
sudo apt-get update --yes && sudo apt-get upgrade --yes"
alias aupgrade="sudo sh -xc 'apt-get autoremove --yes && \
apt-get update --yes && apt-get upgrade --yes'"
alias aptin="apt-get install" alias aptin="apt-get install"
alias aptsearch="apt-cache search" alias aptsearch="apt-cache search"
alias aptshow="apt-cache show" alias aptshow="apt-cache show"
@@ -467,8 +467,8 @@ sudo apt-get update --yes && sudo apt-get upgrade --yes"


null type port && { null type port && {
alias port="port -v" alias port="port -v"
alias pupgrade="sudo port -v selfupdate && \
{ sudo port -v upgrade outdated; }"
alias pupgrade="sudo sh -xc 'port -v selfupdate && \
port -v upgrade outdated'"
} }


if $iscygwin if $iscygwin


Loading…
Cancel
Save