* byobu-status: print some navigation hints at the top of the detailed

status output


Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-11 10:50:55 -05:00
commit 695224c365

View file

@ -67,12 +67,11 @@ case "$P" in
grep -qs -m1 "^$P=1$" "$HOME/.$PKG/status" || exit 0 grep -qs -m1 "^$P=1$" "$HOME/.$PKG/status" || exit 0
;; ;;
--detail) --detail)
VER=
if [ -x "/usr/bin/dpkg-query" ]; then if [ -x "/usr/bin/dpkg-query" ]; then
/usr/bin/dpkg-query --show $PKG | awk '{print $1 "-" $2 " detailed status:"}' VER=`/usr/bin/dpkg-query --show $PKG | awk '{print "-" $2 }'`
else
printf "$PKG detailed status:"
fi 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 for i in `ls "$DIR"`; do
[ "$i" = "menu" ] && continue [ "$i" = "menu" ] && continue
short=`"$DIR"/$i --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true short=`"$DIR"/$i --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true