From 8373c1d544ca074a1cf224a54b5012339adfab17 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Sun, 8 Mar 2020 16:21:32 +0100 Subject: [PATCH] add(any/aliases-pm): Init --- any/aliases-pm/.gitignore | 5 +++++ any/aliases-pm/Makefile | 5 +++++ any/aliases-pm/PKGBUILD | 15 +++++++++++++++ any/aliases-pm/aliases.sh | 11 +++++++++++ 4 files changed, 36 insertions(+) create mode 100644 any/aliases-pm/.gitignore create mode 100644 any/aliases-pm/Makefile create mode 100644 any/aliases-pm/PKGBUILD create mode 100644 any/aliases-pm/aliases.sh diff --git a/any/aliases-pm/.gitignore b/any/aliases-pm/.gitignore new file mode 100644 index 0000000..cd75b66 --- /dev/null +++ b/any/aliases-pm/.gitignore @@ -0,0 +1,5 @@ +* +!*.sh +!.gitignore +!Makefile +!PKGBUILD \ No newline at end of file diff --git a/any/aliases-pm/Makefile b/any/aliases-pm/Makefile new file mode 100644 index 0000000..f5e1ac9 --- /dev/null +++ b/any/aliases-pm/Makefile @@ -0,0 +1,5 @@ +build: + makepkg --sign --force + +install: + makepkg --sign --force --install \ No newline at end of file diff --git a/any/aliases-pm/PKGBUILD b/any/aliases-pm/PKGBUILD new file mode 100644 index 0000000..0a37acc --- /dev/null +++ b/any/aliases-pm/PKGBUILD @@ -0,0 +1,15 @@ +# Maintainer: Markus Pesch + +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 +} diff --git a/any/aliases-pm/aliases.sh b/any/aliases-pm/aliases.sh new file mode 100644 index 0000000..8f200a5 --- /dev/null +++ b/any/aliases-pm/aliases.sh @@ -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