mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
byobu-status: looking both $HOME and /usr for detailed status scripts
This commit is contained in:
parent
52cfadee3a
commit
995ba10d16
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue