* usr/bin/byobu, usr/lib/byobu/.constants:

- support tmux -V version
This commit is contained in:
Dustin Kirkland 2011-06-30 23:34:51 +00:00
commit ae10013ee3
3 changed files with 11 additions and 3 deletions

2
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Wed, 29 Jun 2011 02:26:28 +0000

View file

@ -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

View file

@ -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