bashrc: define aliases for apt

This commit is contained in:
Protesilaos Stavrou 2024-12-06 12:36:53 +02:00
parent 6f4bc433f6
commit 62eb3926de
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -152,6 +152,17 @@ _checkexec lesspipe && eval "$(SHELL=/bin/sh lesspipe)"
# remember the original command when necessary. There are some
# exceptions for commands I seldom execute.
#### Apt (Debian)
if _checkexec apt
then
alias aptuu="sudo apt update && sudo apt upgrade"
alias aptar="sudo apt autoremove"
alias aptss="apt search -n"
alias aptsh="apt show"
alias aptls="dpkg -L"
fi
#### Pacman and Yay (Arch Linux)
if _checkexec pacman