Skip to content

Commit

Permalink
update alias for pacman -Syu
Browse files Browse the repository at this point in the history
  • Loading branch information
duzun committed Apr 11, 2022
1 parent e44dacd commit d83a259
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ~/.aliasrc.linux
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ pacman=$(command -v pacman)
if [ -n "$pacman" ]; then
alias unlock="${_sudo}rm /var/lib/pacman/db.lck" # remove pacman lock
alias cleanup="${_sudo}pacman -Rns (pacman -Qtdq)" # remove orphaned packages
alias update="${_sudo}pacman -Syu --noconfirm"

alias pcman="open https://www.archlinux.org/pacman/pacman.8.html"
alias pS="pacman -S" # sync: install | update
Expand Down Expand Up @@ -118,6 +119,12 @@ if [ -n "$yaourt" ]; then
alias yr="$yaourt -R" # <pkg_name> # uninstall
alias yrf="$yaourt -Rsn" # <pkg_name> # uninstall completely: configs and dependencies
alias yl="$yaourt -Qm" # list installed packages

if [ -n "$pacman" ]; then
alias updatea="update && yuaq"
else
alias updatea="yuaq"
fi
fi

logout() {
Expand Down

0 comments on commit d83a259

Please sign in to comment.