mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* byobu-status: print the short description (matching the status
in the lower bar) first, then the description in parens Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
12f89f6132
commit
d7577da69d
1 changed files with 2 additions and 3 deletions
|
@ -75,10 +75,9 @@ case "$P" in
|
||||||
printf "\n"
|
printf "\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/ $//' | sed 's/.{[^}]*}//g' | sed 's/^/\t/g'` || true
|
short=`"$DIR"/$i --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true
|
||||||
detail=`"$DIR"/$i --detail | sed '/^$/d' | sed 's/^/\t/g'` || true
|
detail=`"$DIR"/$i --detail | sed '/^$/d' | sed 's/^/\t/g'` || true
|
||||||
printf "%-20s - %s\n" "$i" "$short"
|
printf "%-15s (%s)\n" "$short" "$i"
|
||||||
[ -n "$short" ] && printf "%s\n" "$short"
|
|
||||||
[ -n "$detail" ] && printf "%s\n" "$detail"
|
[ -n "$detail" ] && printf "%s\n" "$detail"
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue