add(any/aliases-pm): Init

This commit is contained in:
Markus Pesch 2020-03-08 16:21:32 +01:00
parent baea82f5f2
commit 8373c1d544
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
4 changed files with 36 additions and 0 deletions

5
any/aliases-pm/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
*
!*.sh
!.gitignore
!Makefile
!PKGBUILD

5
any/aliases-pm/Makefile Normal file
View File

@ -0,0 +1,5 @@
build:
makepkg --sign --force
install:
makepkg --sign --force --install

15
any/aliases-pm/PKGBUILD Normal file
View File

@ -0,0 +1,15 @@
# Maintainer: Markus Pesch <markus.pesch@cryptic.systems>
pkgname=aliases-pm
pkgver=0.1.0
pkgrel=1
pkgdesc="Markus Pesch's personal pacman aliases"
license=('GPL')
arch=('any')
source=("aliases.sh")
sha256sums=('c8ac8b6efda6a39d3f098940b9b01bc4c03ad718d0a0ca48a4975070e0364015')
depends=("sudo")
package() {
install -D --mode=0755 --target-directory=${pkgdir}/etc/profile.d ${srcdir}/aliases.sh
}

11
any/aliases-pm/aliases.sh Normal file
View File

@ -0,0 +1,11 @@
# Aliases for pacman
alias pfl='sudo pacman --files --list' # Pacman: Files-List (List files of a package)
alias pf='sudo pacman --files' # Pacman: List Packages which provides specific file
alias pqaip='sudo pacman --query --explicit' # Pacman: Query-All-Installed-Packages
alias pqaop='sudo pacman --query --deps --unrequired' # Pacman: Query-All-Orphaned-Packages
alias pqiap='sudo pacman --query --info' # Pacman: Query-Information-About-Package
alias praop='sudo pacman --remove --nosave --recursive \
$(sudo pacman --query --unrequired --deps --quiet) ' # Pacman: Remove-All-Orphaned-Packages
alias prsp='sudo pacman --remove --recursive --nosave' # Pacman: Remove-Single-Package
alias puap='sudo pacman --sync --refresh --sysupgrade' # Pacman: Update-All-Packages
alias puld='sudo pacman --sync --refresh' # Pacman: Update-Local-Database