mirror of
https://github.com/dustinkirkland/byobu.git
synced 2025-03-12 04:35:50 -07:00
* 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:
parent
c124341758
commit
f1f8844a33
3
debian/changelog
vendored
3
debian/changelog
vendored
@ -4,6 +4,9 @@ byobu (5.64) unreleased; urgency=low
|
||||
- adjust whitespace
|
||||
* usr/bin/byobu:
|
||||
- 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
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# BYOBU_BACKEND can currently be "screen" or "tmux"
|
||||
# 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".
|
||||
#BYOBU_BACKEND="tmux"
|
||||
BYOBU_BACKEND="tmux"
|
||||
|
@ -33,18 +33,11 @@ if [ -z "${BYOBU_INCLUDED_LIBS}" ]; then
|
||||
[ -r "$BYOBU_CONFIG_DIR/backend" ] && . "$BYOBU_CONFIG_DIR/backend"
|
||||
# Just in case there's no config file at all
|
||||
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
|
||||
for i in tmux screen; do
|
||||
$BYOBU_TEST $i >/dev/null && BYOBU_BACKEND="$i" && break
|
||||
done
|
||||
unset i
|
||||
# New byobu configuration, default to tmux
|
||||
for i in tmux screen; do
|
||||
$BYOBU_TEST $i >/dev/null && BYOBU_BACKEND="$i" && break
|
||||
done
|
||||
unset i
|
||||
fi
|
||||
if ! $BYOBU_TEST "$BYOBU_BACKEND" >/dev/null; then
|
||||
printf "%s\n" "ERROR: $PKG won't work without tmux or screen installed" 1>&2
|
||||
|
Loading…
x
Reference in New Issue
Block a user