From 5d3dfb81f985141f2c274024422c8565a24d0ccd Mon Sep 17 00:00:00 2001 From: la-magra Date: Tue, 2 Sep 2014 10:54:20 -0500 Subject: [PATCH] Further improvement of kclean for debian machines --- plugins/debian/debian.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh index c444d615..85a660cb 100644 --- a/plugins/debian/debian.plugin.zsh +++ b/plugins/debian/debian.plugin.zsh @@ -68,7 +68,7 @@ if [[ $use_sudo -eq 1 ]]; then # Remove ALL kernel images and headers EXCEPT the one in use alias kclean='sudo aptitude remove -P "?and(~i~nlinux-(ima|hea),\ ?not(?or(~n`uname -r | cut -d'\''-'\'' -f-2`,\ - ~n(linux-(virtual|headers-virtual|headers-generic|image-virtual|image-generic)))))"' + ~n(linux-(virtual|headers-virtual|headers-generic|image-virtual|image-generic|image-`dpkg --print-architecture`)))))"' # commands using su ######### else @@ -108,7 +108,7 @@ else # Remove ALL kernel images and headers EXCEPT the one in use alias kclean='su -lc '\''aptitude remove -P "?and(~i~nlinux-(ima|hea),\ ?not(?or(~n`uname -r | cut -d'\''-'\'' -f-2`,\ - ~n(linux-(virtual|headers-virtual|headers-generic|image-virtual|image-generic)))))"'\'' root' + ~n(linux-(virtual|headers-virtual|headers-generic|image-virtual|image-generic|image-`dpkg --print-architecture`)))))"'\'' root' fi # Completion ################################################################