From d868d4f8aedcd341fbf56d1c79d646e101f6c007 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Thu, 22 Jul 2021 09:19:16 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20apt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aliases.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/aliases.zsh b/aliases.zsh index 4f07a93..f56b6f1 100644 --- a/aliases.zsh +++ b/aliases.zsh @@ -13,7 +13,8 @@ alias aptp='sudo apt-get purge' alias aptr='sudo apt-get remove' alias aptc='sudo apt-get --purge autoremove' alias aptk='sudo apt-key add' -apts() { +alias apts='apt-cache show' +aptf() { [ -z $1 ] && return 1 if [ -z $2 ]; then apt-cache search $1 @@ -21,6 +22,11 @@ apts() { apt-cache search $1 | grep $2 fi } +aptl() { + [ -z $1 ] && return 1 + sudo apt-get purge linux-modules-extra-"$1".* linux-modules-"$1".* linux-tools-"$1".* \ + linux-image-"$1".* linux-image-unsigned-"$1".* linux-headers-"$1".* +} # VIM alias gvim='gvim --remote-silent'