From 468e8ff43e302b321ce258dea466d9411d6807cd Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sun, 7 Jan 2007 11:58:09 +0100 Subject: [PATCH] /etc/zsh/zshrc: add alias debs-by-size --- debian/changelog | 1 + etc/zsh/zshrc | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/debian/changelog b/debian/changelog index e98402f..b354f5b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,7 @@ grml-etc-core (0.2.15) unstable; urgency=low a clean prompt without error return codes inside but don't want to miss the feature itself, so just press 0 and that's it :)) + - added alias debs-by-size -- Michael Prokop Fri, 5 Jan 2007 00:00:54 +0100 diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index aa1fddf..7cf2087 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -657,6 +657,12 @@ Enjoy your grml system with the zsh!$reset_color" alias zshskel="source /etc/skel/.zshrc" # source skeleton zshrc fi +# sort installed Debian-packages by size + if [ -x /usr/bin/grep-status ] ; then + alias debs-by-size='grep-status -FStatus -sInstalled-Size,Package \ + -n "install ok installed" | paste -sd " \n" | sort -rn' + fi + # if cdrecord is a symlink (to wodim) or isn't present at all warn: if [ -L /usr/bin/cdrecord -o ! -x =cdrecord ] ; then if [ -x =wodim ] ; then -- 2.1.4