* usr/bin/byobu-launch:

- switch the disable environment variable to LC_BYOBU=0, since
    LC_* are passed over SSH by default in Debian/Ubuntu, and it's
    a bit more brief
This commit is contained in:
Dustin Kirkland 2011-06-13 08:38:50 -05:00
commit 08cdb5e9d6
2 changed files with 15 additions and 12 deletions

5
debian/changelog vendored
View file

@ -1,6 +1,9 @@
byobu (4.12) unreleased; urgency=low byobu (4.12) unreleased; urgency=low
* UNRELEASED * usr/bin/byobu-launch:
- switch the disable environment variable to LC_BYOBU=0, since
LC_* are passed over SSH by default in Debian/Ubuntu, and it's
a bit more brief
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 12 Jun 2011 23:37:24 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Sun, 12 Jun 2011 23:37:24 -0500

View file

@ -20,17 +20,17 @@
PKG="byobu" PKG="byobu"
DATA="$HOME/.$PKG" DATA="$HOME/.$PKG"
# Respect a BYOBU_DISABLE environment variable # Respect an environment variable passable over SSH to disable
# To use over SSH, you must: # Byobu launch. This put that configurability on the SSH client,
# 1) On your remote SSH server (might be handled by your distro): # in addition to the server.
# /etc/ssh/sshd_config: # To use over SSH, your /etc/ssh/sshd_config and /etc/ssh/ssh_config
# AcceptEnv LANG LC_* BYOBU_DISABLE # must pass this variable with AcceptEnv and SendEnv.
# 2) On your local SSH client (might be handled by your distro): # Note that LC_* are passed by default on Debian/Ubuntu.
# /etc/ssh/ssh_config: # - So we're going to use a variable name that's not already used (LC_BYOBU):
# SendEnv LANG LC_* BYOBU_DISABLE # http://pubs.opengroup.org/onlinepubs/007908799/xbd/envvar.html
# 3) And in your local bashrc: # And in your local bashrc:
# $HOME/.bashrc: export BYOBU_DISABLE=1 # $HOME/.bashrc: export LC_BYOBU=0
if [ "$BYOBU_DISABLE" != 1 ]; then if [ "$LC_BYOBU" != 0 ]; then
case "$-" in case "$-" in
*i*) *i*)
# Attempt to merge shell history across sessions/windows (works with a few exceptions) # Attempt to merge shell history across sessions/windows (works with a few exceptions)