mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* 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:
parent
75c48413e9
commit
695224c365
1 changed files with 3 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue