mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
* usr/bin/byobu:
- clean up the backend determination a little
This commit is contained in:
parent
39528b4845
commit
b1b8fb70b9
2 changed files with 8 additions and 12 deletions
3
debian/changelog
vendored
3
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue