* usr/bin/byobu:

- clean up the backend determination a little
This commit is contained in:
Dustin Kirkland 2011-08-11 05:37:59 -05:00
commit b1b8fb70b9
2 changed files with 8 additions and 12 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
byobu (4.29) unreleased; urgency=low
* UNRELEASED
* usr/bin/byobu:
- clean up the backend determination a little
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 10 Aug 2011 18:24:27 -0500

View file

@ -34,22 +34,17 @@ if [ "$#" = "1" ]; then
esac
fi
case "$0" in
*byobu-screen)
export BYOBU_BACKEND="screen"
exec $PKG "$@"
;;
*byobu-tmux)
export BYOBU_BACKEND="tmux"
exec $PKG "$@"
;;
esac
# Check if we're being autolaunched, and this user explicitly does not want it.
if [ "$0" = "/etc/profile.d/Z98-$PKG.sh" ] && [ -r "$BYOBU_CONFIG_DIR/disable-autolaunch" ]; then
exit 0
fi
# Determine backend
case "$0" in
*byobu-screen) export BYOBU_BACKEND="screen" ;;
*byobu-tmux) export BYOBU_BACKEND="tmux" ;;
esac
# Sanitize the environment
byobu-janitor --force