* 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: * etc/byobu/backend, usr/lib/byobu/.constants:
- add support for storing byobu backend configuration (screen|tmux) - add support for storing byobu backend configuration (screen|tmux)
* debian/control: start suggesting 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 -- 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 case "$1" in
-v|--version) -v|--version)
echo "$PKG version $VERSION" echo "$PKG version $VERSION"
exec $BYOBU_BACKEND -v exec $BYOBU_BACKEND $BYOBU_ARG_VERSION
exit 0 exit 0
;; ;;
esac esac

View file

@ -26,8 +26,14 @@ if [ -z "$BYOBU_BACKEND" ];
[ -r "$BYOBU_CONFIG_DIR/backend" ] && . "$BYOBU_CONFIG_DIR/backend" [ -r "$BYOBU_CONFIG_DIR/backend" ] && . "$BYOBU_CONFIG_DIR/backend"
fi fi
case "$BYOBU_BACKEND" in case "$BYOBU_BACKEND" in
screen|tmux) export BYOBU_BACKEND ;; tmux)
*) export BYOBU_BACKEND="screen" ;; export BYOBU_BACKEND
BYOBU_ARG_VERSION="-V"
;;
*)
export BYOBU_BACKEND="screen"
BYOBU_ARG_VERSION="-v"
;;
esac esac
# Create and set the user configuration directory # Create and set the user configuration directory