mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 22:34:23 -07:00
* etc/profile.d/Z97-byobu.sh, usr/bin/byobu-launcher: LP: #897711
- allow nesting, if LC_BYOBU > 1
This commit is contained in:
parent
a1d3b29bb0
commit
bdfa4500aa
3 changed files with 10 additions and 4 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -24,6 +24,8 @@ byobu (5.3) unreleased; urgency=low
|
||||||
rather than one or the other
|
rather than one or the other
|
||||||
* etc/profile.d/Z97-byobu.sh:
|
* etc/profile.d/Z97-byobu.sh:
|
||||||
- support LC_TERMTYPE=[byobu|byobu-screen|byobu-tmux]
|
- support LC_TERMTYPE=[byobu|byobu-screen|byobu-tmux]
|
||||||
|
* etc/profile.d/Z97-byobu.sh, usr/bin/byobu-launcher: LP: #897711
|
||||||
|
- allow nesting, if LC_BYOBU > 1
|
||||||
|
|
||||||
[ Dustin Kirkland and Ryan Thompson ]
|
[ Dustin Kirkland and Ryan Thompson ]
|
||||||
* usr/bin/byobu-reconnect-sockets, usr/bin/byobu-select-session: LP: #908944
|
* usr/bin/byobu-reconnect-sockets, usr/bin/byobu-select-session: LP: #908944
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
# Apologies for borrowing the LC_BYOBU namespace, but:
|
# Apologies for borrowing the LC_BYOBU namespace, but:
|
||||||
# a) it's reasonable to assume that no one else is using LC_BYOBU
|
# a) it's reasonable to assume that no one else is using LC_BYOBU
|
||||||
# b) LC_* is sent and receieved by most /etc/ssh/ssh*_config
|
# b) LC_* is sent and receieved by most /etc/ssh/ssh*_config
|
||||||
if [ "$LC_BYOBU" = "1" ] && [ -r "/usr/bin/byobu-launch" ]; then
|
if [ -n "$LC_BYOBU" ] && [ "$LC_BYOBU" -gt 0 ] && [ -r "/usr/bin/byobu-launch" ]; then
|
||||||
. /usr/bin/byobu-launch
|
. /usr/bin/byobu-launch
|
||||||
elif [ "$LC_TERMTYPE" = "byobu" ] && [ -r "/usr/bin/byobu-launch" ]; then
|
elif [ "$LC_TERMTYPE" = "byobu" ] && [ -r "/usr/bin/byobu-launch" ]; then
|
||||||
. /usr/bin/byobu-launch
|
. /usr/bin/byobu-launch
|
||||||
|
|
|
@ -29,9 +29,13 @@ if [ -O "$HOME" ]; then
|
||||||
else
|
else
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
*screen*)
|
*screen*)
|
||||||
# Handle nesting (silence this message, as some users found it noisy?)
|
# Handle nesting
|
||||||
# printf "$(gettext 'To launch in a nested session, run: byobu')\n"
|
if [ -n "$LC_BYOBU" ] && [ "$LC_BYOBU" -gt 1 ]; then
|
||||||
true
|
# LC_BYOBU > 1, so user explicitly wants nested sessions
|
||||||
|
exec $BYOBU_PREFIX/bin/byobu "$@"
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
dumb)
|
dumb)
|
||||||
# Dumb terminal, don't launch
|
# Dumb terminal, don't launch
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue