mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
bin/custom, byobu-status: support --detail in custom scripts
This commit is contained in:
parent
025029fb32
commit
788176d1ce
3 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
1
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue