diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 82fc656..9894871 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -110,7 +110,7 @@ alias vim="vim --servername VIM" # Config alias c="$HOME/.scripts/config.sh" -alias zrc="$EDITOR $ZDOTDIR/.zshrc && source $ZDOTDIR/.zshrc" +alias zshrc="$EDITOR $ZDOTDIR/.zshrc && source $ZDOTDIR/.zshrc" alias lxrdb="xrdb $XDG_CONFIG_HOME/xorg/Xresources" alias lzshrc="source $ZDOTDIR/.zshrc" @@ -124,6 +124,7 @@ alias install="sudo pacman -S --needed" alias remove="sudo pacman -Rns" alias search="$HOME/.scripts/alias.sh pacman_search" alias update="sudo pacman -Syyu" +alias update-mirrorlist="$HOME/.scripts/alias.sh update_mirrorlist" # Programming alias jdoc="$HOME/.scripts/alias.sh java_doc" diff --git a/.scripts/alias.sh b/.scripts/alias.sh index ff8bc78..740c69f 100755 --- a/.scripts/alias.sh +++ b/.scripts/alias.sh @@ -93,6 +93,11 @@ stream() { streamlink --player mpv "https://twitch.tv/$1" "$QUALITY" > /dev/null 2>&1 & } +update_mirrorlist() { + sudo rm /etc/pacman.d/mirrorlist.pacnew + sudo reflector --latest 100 --protocol https --sort rate --save /etc/pacman.d/mirrorlist +} + webmconvert() { [ "$2" = "1" ] && AUDIO="-c:a libvorbis" || AUDIO="-an"