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"
|
||||
for i in `ls "$DIR"`; do
|
||||
[ "$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
|
||||
printf "%-20s - %s\n" "$i" "$short"
|
||||
[ -n "$short" ] && printf "%s\n" "$short"
|
||||
printf "%-15s (%s)\n" "$short" "$i"
|
||||
[ -n "$detail" ] && printf "%s\n" "$detail"
|
||||
done
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue