* usr/bin/byobu-status:

- speed up disabled status runs
This commit is contained in:
Dustin Kirkland 2011-08-15 10:05:34 -05:00
commit ebe905defb
2 changed files with 4 additions and 1 deletions

2
debian/changelog vendored
View file

@ -3,6 +3,8 @@ byobu (4.30) unreleased; urgency=low
* usr/share/byobu/profiles/tmux:
- go bold on window activity
- clean up and make window colorings more consistent
* usr/bin/byobu-status:
- speed up disabled status runs
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 11 Aug 2011 10:31:31 -0500

View file

@ -21,6 +21,8 @@ PKG="byobu"
[ -z "${BYOBU_PREFIX}" ] && export BYOBU_PREFIX="/usr" || export BYOBU_PREFIX
. "${BYOBU_PREFIX}/lib/${PKG}/.common"
[ -f "$BYOBU_CONFIG_DIR/status.disable" ] && exit 0
# 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
[ -r "$i" ] && . "$i"
@ -55,7 +57,6 @@ case "$P" in
printf "$ESC{= $BACKGROUND$FOREGROUND}"
;;
*)
[ -f "$BYOBU_CONFIG_DIR/status.disable" ] && exit 0
eval x="\$$P" || exit 1
[ "$x" = "1" ] || exit 0
shift