/etc/zsh/zshrc: add alias debs-by-size
authorMichael Prokop <mika@grml.org>
Sun, 7 Jan 2007 10:58:09 +0000 (11:58 +0100)
committerMichael Prokop <mika@grml.org>
Sun, 7 Jan 2007 10:58:09 +0000 (11:58 +0100)
debian/changelog
etc/zsh/zshrc

index e98402f..b354f5b 100644 (file)
@@ -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<cr> and that's
       it :))
+    - added alias debs-by-size
 
  -- Michael Prokop <mika@grml.org>  Fri,  5 Jan 2007 00:00:54 +0100
 
index aa1fddf..7cf2087 100644 (file)
@@ -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