byobu-status: looking both $HOME and /usr for detailed status scripts

This commit is contained in:
Dustin Kirkland 2009-12-07 12:48:44 -06:00
commit 995ba10d16

View file

@ -43,12 +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"
if [ -d "$HOME/.$PKG/bin" ]; then
DIR="$HOME/.$PKG/bin"
else
DIR="/usr/lib/$PKG"
fi
for i in `ls "$DIR"`; do
for i in $(ls "/usr/lib/$PKG" "$HOME/.$PKG/bin" 2>/dev/null); do
[ "$i" = "menu" ] && continue
script=`find_script $i`
short=`$script --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true