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