mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
- statusrc contains auxiliary configuration information
* usr/bin/byobu-status, usr/bin/byobu-statusd, usr/lib/byobu/logo: - re-source constants in case of upgrades
This commit is contained in:
parent
4e74effcbd
commit
1d3aaed67d
4 changed files with 7 additions and 5 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -107,10 +107,12 @@ byobu (4.18) unreleased; urgency=low
|
||||||
- LP: #803509
|
- LP: #803509
|
||||||
- rework usage of status and statusrc
|
- rework usage of status and statusrc
|
||||||
- status now contains the enable/disable bits for each status item
|
- status now contains the enable/disable bits for each status item
|
||||||
- statusrc contains auxilliary configuration information
|
- statusrc contains auxiliary configuration information
|
||||||
- remove this stuff from /etc/byobu/statusrc altogether, and move
|
- remove this stuff from /etc/byobu/statusrc altogether, and move
|
||||||
it to /usr/share
|
it to /usr/share
|
||||||
- standardize the seeding of the local user's configuration
|
- standardize the seeding of the local user's configuration
|
||||||
|
* usr/bin/byobu-status, usr/bin/byobu-statusd, usr/lib/byobu/logo:
|
||||||
|
- re-source constants in case of upgrades
|
||||||
|
|
||||||
[ James Spencer ]
|
[ James Spencer ]
|
||||||
* usr/lib/byobu/.constants:
|
* usr/lib/byobu/.constants:
|
||||||
|
|
|
@ -46,7 +46,7 @@ color() {
|
||||||
# Source configurations
|
# Source configurations
|
||||||
for i in "${BYOBU_PREFIX}/share/$PKG/status/status" "${BYOBU_PREFIX}/share/$PKG/status/statusrc" "$BYOBU_CONFIG_DIR/status" "$BYOBU_CONFIG_DIR/statusrc" "$BYOBU_CONFIG_DIR/color"; do
|
for i in "${BYOBU_PREFIX}/share/$PKG/status/status" "${BYOBU_PREFIX}/share/$PKG/status/statusrc" "$BYOBU_CONFIG_DIR/status" "$BYOBU_CONFIG_DIR/statusrc" "$BYOBU_CONFIG_DIR/color"; do
|
||||||
[ -r "$i" ] && . "$i"
|
[ -r "$i" ] && . "$i"
|
||||||
do
|
done
|
||||||
|
|
||||||
export P="$1"
|
export P="$1"
|
||||||
case "$P" in
|
case "$P" in
|
||||||
|
|
|
@ -40,8 +40,8 @@ while true; do
|
||||||
fi
|
fi
|
||||||
now=$(date +%s)
|
now=$(date +%s)
|
||||||
# Re-source configuration, if changed since last run
|
# Re-source configuration, if changed since last run
|
||||||
for i in "${BYOBU_PREFIX}/share/$PKG/status/status" "${BYOBU_PREFIX}/share/$PKG/status/statusrc" "$BYOBU_CONFIG_DIR/status" "$BYOBU_CONFIG_DIR/statusrc" "$BYOBU_CONFIG_DIR/color"; do
|
for i in "${BYOBU_PREFIX}/share/$PKG/status/status" "${BYOBU_PREFIX}/share/$PKG/status/statusrc" "$BYOBU_CONFIG_DIR/status" "$BYOBU_CONFIG_DIR/statusrc" "$BYOBU_CONFIG_DIR/color" "${BYOBU_PREFIX}/lib/$PKG/."*; do
|
||||||
[ -r "$i" ] && [ "$i" -nt "$BYOBU_RUN_DIR/status" ] && . "$i"
|
[ "$i" -nt "$BYOBU_RUN_DIR/status" ] && . "$i"
|
||||||
done
|
done
|
||||||
for i in "$BYOBU_PREFIX/lib/$PKG/"*; do
|
for i in "$BYOBU_PREFIX/lib/$PKG/"*; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
|
|
|
@ -33,7 +33,7 @@ get_distro() {
|
||||||
_RET=`lsb_release -s -a 2>/dev/null`
|
_RET=`lsb_release -s -a 2>/dev/null`
|
||||||
else
|
else
|
||||||
# No idea!
|
# No idea!
|
||||||
printf "[B]"
|
_RET="[B]"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue