From ae10013ee34d824ee9531c60342345605ecd4330 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 30 Jun 2011 23:34:51 +0000 Subject: [PATCH] * usr/bin/byobu, usr/lib/byobu/.constants: - support tmux -V version --- debian/changelog | 2 ++ usr/bin/byobu | 2 +- usr/lib/byobu/.constants | 10 ++++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index ad7474cc..f2e6d919 100644 --- a/debian/changelog +++ b/debian/changelog @@ -23,6 +23,8 @@ byobu (4.18) unreleased; urgency=low * etc/byobu/backend, usr/lib/byobu/.constants: - add support for storing byobu backend configuration (screen|tmux) * debian/control: start suggesting tmux + * usr/bin/byobu, usr/lib/byobu/.constants: + - support tmux -V version -- Dustin Kirkland Wed, 29 Jun 2011 02:26:28 +0000 diff --git a/usr/bin/byobu b/usr/bin/byobu index ede3fbce..ef766c64 100755 --- a/usr/bin/byobu +++ b/usr/bin/byobu @@ -28,7 +28,7 @@ if [ "$#" = "1" ]; then case "$1" in -v|--version) echo "$PKG version $VERSION" - exec $BYOBU_BACKEND -v + exec $BYOBU_BACKEND $BYOBU_ARG_VERSION exit 0 ;; esac diff --git a/usr/lib/byobu/.constants b/usr/lib/byobu/.constants index 0780bc0d..41904aff 100755 --- a/usr/lib/byobu/.constants +++ b/usr/lib/byobu/.constants @@ -26,8 +26,14 @@ if [ -z "$BYOBU_BACKEND" ]; [ -r "$BYOBU_CONFIG_DIR/backend" ] && . "$BYOBU_CONFIG_DIR/backend" fi case "$BYOBU_BACKEND" in - screen|tmux) export BYOBU_BACKEND ;; - *) export BYOBU_BACKEND="screen" ;; + tmux) + export BYOBU_BACKEND + BYOBU_ARG_VERSION="-V" + ;; + *) + export BYOBU_BACKEND="screen" + BYOBU_ARG_VERSION="-v" + ;; esac # Create and set the user configuration directory