From 4e7da05f233812abb0306a6fcda6425a0c4cd10f Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 11 Mar 2024 11:42:49 +0100 Subject: [PATCH] Pacman alias to search in installed packages --- zshrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index dbf63a2..4a1f0bf 100644 --- a/zshrc +++ b/zshrc @@ -133,7 +133,7 @@ alias mane="LANG=C man " alias most='most -w' ## System -# APT|Aptitude|… commands {{{ +# APT|Aptitude|dpkg|… commands {{{ if [ -d /etc/apt ]; then alias acle='sudo aptitude clean' alias afil='apt-file search --' @@ -152,6 +152,8 @@ if [ -d /etc/apt ]; then alias awhy='aptitude why' alias insexperimental='sudo aptitude --target-release experimental install' alias anorepos="apt list --installed | sed --silent 's/\(.*\)\/.*,local.*/\1/p' | tr '\n' ' '" + + alias gdpkg='dpkg --list | grep --extended-regexp -- ' fi # }}} # Pacman commands {{{ @@ -173,6 +175,8 @@ if [ -d /etc/pacman.d ]; then alias pasho='pacman --sync --info --' #alias awhy='aptitude why' #alias anorepos="apt list --installed | sed --silent 's/\(.*\)\/.*,local.*/\1/p' | tr '\n' ' '" + + alias gpackage='pacman --query --search -- | grep --extended-regexp -- ' fi # }}} # Yay commands for AUR − Archlinux User Repository {{{ @@ -195,7 +199,6 @@ alias maildate='sudo mailq |grep "^[A-F0-9]" |sort -k5n -k6n' alias grep='grep --color=always --ignore-case ' alias gerp='grep --ignore-case' alias Grep='\grep ' -alias gdpkg='dpkg --list | grep --extended-regexp -- ' alias gmount='mount | grep --extended-regexp -- ' alias gdf='df | grep --extended-regexp -- ' # }}}