mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
* usr/bin/byobu-status-print:
- save a few forks
This commit is contained in:
parent
f651b4c91d
commit
ed1cd37cbc
2 changed files with 6 additions and 4 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -59,6 +59,8 @@ byobu (4.18) unreleased; urgency=low
|
|||
- re-add a couple of necessary backticks
|
||||
- update caption line to use new statusd cache
|
||||
- significantly reduce the number of mkdir -p commands
|
||||
* usr/bin/byobu-status-print:
|
||||
- save a few forks
|
||||
|
||||
[ James Spencer ]
|
||||
* usr/lib/byobu/.constants:
|
||||
|
|
|
@ -20,16 +20,16 @@
|
|||
|
||||
PKG="byobu"
|
||||
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX
|
||||
. "${BYOBU_PREFIX}/lib/${PKG}/.constants"
|
||||
. "${BYOBU_PREFIX}/lib/${PKG}/.dirs"
|
||||
|
||||
for i in $(cat "$BYOBU_CONFIG_DIR/status.$1"); do
|
||||
while read i; do
|
||||
cache="$BYOBU_RUN_DIR/status/$i"
|
||||
if [ -s "$cache" ]; then
|
||||
read c < "$cache"
|
||||
printf "%s" "$c"
|
||||
case "$i" in
|
||||
color|time) true ;;
|
||||
color|menu|time) true ;;
|
||||
*) printf " " ;;
|
||||
esac
|
||||
fi
|
||||
done
|
||||
done < "$BYOBU_CONFIG_DIR/status.$1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue