mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -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
|
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
|
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 10 Aug 2011 18:24:27 -0500
|
||||||
|
|
||||||
|
|
|
@ -34,22 +34,17 @@ if [ "$#" = "1" ]; then
|
||||||
esac
|
esac
|
||||||
fi
|
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.
|
# 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
|
if [ "$0" = "/etc/profile.d/Z98-$PKG.sh" ] && [ -r "$BYOBU_CONFIG_DIR/disable-autolaunch" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Determine backend
|
||||||
|
case "$0" in
|
||||||
|
*byobu-screen) export BYOBU_BACKEND="screen" ;;
|
||||||
|
*byobu-tmux) export BYOBU_BACKEND="tmux" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Sanitize the environment
|
# Sanitize the environment
|
||||||
byobu-janitor --force
|
byobu-janitor --force
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue