mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -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
|
- re-add a couple of necessary backticks
|
||||||
- update caption line to use new statusd cache
|
- update caption line to use new statusd cache
|
||||||
- significantly reduce the number of mkdir -p commands
|
- significantly reduce the number of mkdir -p commands
|
||||||
|
* usr/bin/byobu-status-print:
|
||||||
|
- save a few forks
|
||||||
|
|
||||||
[ James Spencer ]
|
[ James Spencer ]
|
||||||
* usr/lib/byobu/.constants:
|
* usr/lib/byobu/.constants:
|
||||||
|
|
|
@ -20,16 +20,16 @@
|
||||||
|
|
||||||
PKG="byobu"
|
PKG="byobu"
|
||||||
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX
|
[ -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"
|
cache="$BYOBU_RUN_DIR/status/$i"
|
||||||
if [ -s "$cache" ]; then
|
if [ -s "$cache" ]; then
|
||||||
read c < "$cache"
|
read c < "$cache"
|
||||||
printf "%s" "$c"
|
printf "%s" "$c"
|
||||||
case "$i" in
|
case "$i" in
|
||||||
color|time) true ;;
|
color|menu|time) true ;;
|
||||||
*) printf " " ;;
|
*) printf " " ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
done
|
done < "$BYOBU_CONFIG_DIR/status.$1"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue