From 695224c3651affa2a111c303aa8d06acda9aaaf9 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 11 May 2009 10:50:55 -0500 Subject: [PATCH] * byobu-status: print some navigation hints at the top of the detailed status output Signed-off-by: Dustin Kirkland --- byobu-status | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/byobu-status b/byobu-status index 9da19f8f..470f627d 100755 --- a/byobu-status +++ b/byobu-status @@ -67,12 +67,11 @@ case "$P" in grep -qs -m1 "^$P=1$" "$HOME/.$PKG/status" || exit 0 ;; --detail) + VER= if [ -x "/usr/bin/dpkg-query" ]; then - /usr/bin/dpkg-query --show $PKG | awk '{print $1 "-" $2 " detailed status:"}' - else - printf "$PKG detailed status:" + VER=`/usr/bin/dpkg-query --show $PKG | awk '{print "-" $2 }'` fi - printf "\n" + printf "$PKG$VER Detailed Status Navigation\n Expand all - zr\t\tCollapse all - zm\n Expand one - zo\t\tCollapse one - zc\n\n" for i in `ls "$DIR"`; do [ "$i" = "menu" ] && continue short=`"$DIR"/$i --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true