bin/custom, byobu-status: support --detail in custom scripts

This commit is contained in:
Dustin Kirkland 2009-12-07 13:16:59 -06:00
commit 788176d1ce
3 changed files with 3 additions and 2 deletions

View file

@ -35,7 +35,7 @@ for i in $(ls "$HOME/.$PKG/bin/"[0-9]*_* 2>/dev/null); do
expiration=$(expr $lastrun + $freq)
if [ $NOW -ge $expiration ]; then
# Update the cache
$i > "$CACHE.$script" 2>/dev/null
$i $@ > "$CACHE.$script" 2>/dev/null
fi
output=$(cat "$CACHE.$script")
if echo "$output" | grep -qs "$ESC{"; then

View file

@ -43,7 +43,7 @@ case "$P" in
VER=`dpkg-query --show $PKG | awk '{print "-" $2 }'`
fi
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 "/usr/lib/$PKG" "$HOME/.$PKG/bin" 2>/dev/null); do
for i in $(ls "/usr/lib/$PKG" "$HOME/.$PKG/bin" 2>/dev/null | grep -v "^/" | sort -u); do
[ "$i" = "menu" ] && continue
script=`find_script $i`
short=`$script --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true

1
debian/changelog vendored
View file

@ -49,6 +49,7 @@ byobu (2.40) unreleased; urgency=low
statusrc: add support for a custom status script indicator
* byobu-config, byobu-select-profile: make color selection more readable;
support ctrl-<space> escape sequence
* bin/custom, byobu-status: support --detail in custom scripts
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 10 Nov 2009 10:18:20 -0600