* usr/bin/byobu-launch:

- move the location of the BYOBU_DISABLE test
This commit is contained in:
Dustin Kirkland 2011-05-28 12:41:21 -05:00
commit 028d8c6d3c
2 changed files with 32 additions and 25 deletions

2
debian/changelog vendored
View file

@ -7,6 +7,8 @@ byobu (4.6) unreleased; urgency=low
- seems that ctrl-F6 doesn't work in tty right now - seems that ctrl-F6 doesn't work in tty right now
* usr/bin/byobu-launch: * usr/bin/byobu-launch:
- merge history - merge history
* usr/bin/byobu-launch:
- move the location of the BYOBU_DISABLE test
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 May 2011 15:14:52 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 May 2011 15:14:52 -0500

View file

@ -19,20 +19,24 @@
PKG="byobu" PKG="byobu"
DATA="$HOME/.$PKG" DATA="$HOME/.$PKG"
case "$-" in
# Respect a BYOBU_DISABLE environment variable
# To use over SSH, you must:
# 1) On your remote SSH server (might be handled by your distro):
# /etc/ssh/sshd_config:
# AcceptEnv LANG LC_* BYOBU_DISABLE
# 2) On your local SSH client (might be handled by your distro):
# /etc/ssh/ssh_config:
# SendEnv LANG LC_* BYOBU_DISABLE
# 3) And in your local bashrc:
# $HOME/.bashrc: export BYOBU_DISABLE=1
if [ "$BYOBU_DISABLE" != 1 ]; then
case "$-" in
*i*) *i*)
# Attempt to merge history across screen sessions/windows (works with a few exceptions) # Attempt to merge shell history across sessions/windows (works with a few exceptions)
shopt -s histappend || true shopt -s histappend || true
[ -n "$PROMPT_COMMAND" ] && PROMPT_COMMAND="$PROMPT_COMMAND;history -a" || PROMPT_COMMAND="history -a" [ -n "$PROMPT_COMMAND" ] && PROMPT_COMMAND="$PROMPT_COMMAND;history -a" || PROMPT_COMMAND="history -a"
# Respect a BYOBU_DISABLE environment variable if byobu-launcher; then
# To use over SSH, you must:
# 1) On your remote SSH server (might be handled by your distro):
# /etc/ssh/sshd_config: AcceptEnv LANG LC_* BYOBU_DISABLE
# 2) On your local SSH client (might be handled by your distro):
# /etc/ssh/ssh_config: SendEnv LANG LC_* BYOBU_DISABLE
# 3) And in your local bashrc:
# $HOME/.bashrc: export BYOBU_DISABLE=1
if [ "$BYOBU_DISABLE" != "1" ] && byobu-launcher; then
# Wait very briefly for the no-logout flag to get written? # Wait very briefly for the no-logout flag to get written?
sleep 0.1 sleep 0.1
if [ -e "$DATA/no-logout-on-detach" ] || [ -e "/var/run/screen/S-$USER/byobu.no-logout" ]; then if [ -e "$DATA/no-logout-on-detach" ] || [ -e "/var/run/screen/S-$USER/byobu.no-logout" ]; then
@ -44,5 +48,6 @@ case "$-" in
fi fi
fi fi
;; ;;
esac esac
fi
true true