* etc/byobu/backend, usr/lib/byobu/include/common:

- really default to tmux, at this point
  - tmux was the default in the previous LTS
This commit is contained in:
Dustin Kirkland 2013-11-08 12:19:16 -06:00
commit f1f8844a33
3 changed files with 9 additions and 13 deletions

3
debian/changelog vendored
View file

@ -4,6 +4,9 @@ byobu (5.64) unreleased; urgency=low
- adjust whitespace - adjust whitespace
* usr/bin/byobu: * usr/bin/byobu:
- handle the backend better - handle the backend better
* etc/byobu/backend, usr/lib/byobu/include/common:
- really default to tmux, at this point
- tmux was the default in the previous LTS
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 07 Nov 2013 11:55:15 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 07 Nov 2013 11:55:15 -0600

View file

@ -1,4 +1,4 @@
# BYOBU_BACKEND can currently be "screen" or "tmux" # BYOBU_BACKEND can currently be "screen" or "tmux"
# Override this on a per-user basis by editing "$BYOBU_CONFIG_DIR/backend" # Override this on a per-user basis by editing "$BYOBU_CONFIG_DIR/backend"
# or by launching either "byobu-screen" or "byobu-tmux" instead of "byobu". # or by launching either "byobu-screen" or "byobu-tmux" instead of "byobu".
#BYOBU_BACKEND="tmux" BYOBU_BACKEND="tmux"

View file

@ -33,13 +33,6 @@ if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then
[ -r "$BYOBU_CONFIG_DIR/backend" ] && . "$BYOBU_CONFIG_DIR/backend" [ -r "$BYOBU_CONFIG_DIR/backend" ] && . "$BYOBU_CONFIG_DIR/backend"
# Just in case there's no config file at all # Just in case there's no config file at all
if [ -z "${BYOBU_BACKEND}" ]; then if [ -z "${BYOBU_BACKEND}" ]; then
if [ -d "$BYOBU_CONFIG_DIR" ] && [ -r "$BYOBU_CONFIG_DIR/profile" ]; then
# Previous byobu configuration exists, default to screen
for i in screen tmux; do
$BYOBU_TEST $i >/dev/null && BYOBU_BACKEND="$i" && break
done
unset i
else
# New byobu configuration, default to tmux # New byobu configuration, default to tmux
for i in tmux screen; do for i in tmux screen; do
$BYOBU_TEST $i >/dev/null && BYOBU_BACKEND="$i" && break $BYOBU_TEST $i >/dev/null && BYOBU_BACKEND="$i" && break