diff --git a/debian/changelog b/debian/changelog index 732e45c4..fed747d1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 11 Aug 2011 10:31:31 -0500 diff --git a/usr/bin/byobu-status b/usr/bin/byobu-status index 1cb9f1ec..cd1d5034 100755 --- a/usr/bin/byobu-status +++ b/usr/bin/byobu-status @@ -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