From a1d3b29bb0352953ab734ccb63f10ec9233bc757 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 15 Jan 2012 11:21:01 -0600 Subject: [PATCH] * etc/profile.d/Z97-byobu.sh: - support LC_TERMTYPE=[byobu|byobu-screen|byobu-tmux] --- debian/changelog | 2 ++ etc/profile.d/Z97-byobu.sh | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index 4b368417..61a09f21 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,6 +22,8 @@ byobu (5.3) unreleased; urgency=low - support ip_address4 and ip_address6 in the status line - allows for users to see both ipv4 and ipv6 addresses simultaneously rather than one or the other + * etc/profile.d/Z97-byobu.sh: + - support LC_TERMTYPE=[byobu|byobu-screen|byobu-tmux] [ Dustin Kirkland and Ryan Thompson ] * usr/bin/byobu-reconnect-sockets, usr/bin/byobu-select-session: LP: #908944 diff --git a/etc/profile.d/Z97-byobu.sh b/etc/profile.d/Z97-byobu.sh index dfd46f9e..fbd16698 100755 --- a/etc/profile.d/Z97-byobu.sh +++ b/etc/profile.d/Z97-byobu.sh @@ -22,6 +22,14 @@ # b) LC_* is sent and receieved by most /etc/ssh/ssh*_config if [ "$LC_BYOBU" = "1" ] && [ -r "/usr/bin/byobu-launch" ]; then . /usr/bin/byobu-launch +elif [ "$LC_TERMTYPE" = "byobu" ] && [ -r "/usr/bin/byobu-launch" ]; then + . /usr/bin/byobu-launch +elif [ "$LC_TERMTYPE" = "byobu-screen" ] && [ -r "/usr/bin/byobu-launch" ]; then + export BYOBU_BACKEND="screen" + . /usr/bin/byobu-launch +elif [ "$LC_TERMTYPE" = "byobu-tmux" ] && [ -r "/usr/bin/byobu-launch" ]; then + export BYOBU_BACKEND="tmux" + . /usr/bin/byobu-launch fi # vi: syntax=sh ts=4 noexpandtab