support users who chose to set LC_BYOBU=0, since

LC_* are passed over SSH by default in Debian/Ubuntu
This commit is contained in:
Dustin Kirkland 2011-06-14 16:02:25 -05:00
commit 9a2771507e
2 changed files with 7 additions and 7 deletions

5
debian/changelog vendored
View file

@ -1,9 +1,8 @@
byobu (4.12) unreleased; urgency=low byobu (4.12) unreleased; urgency=low
* usr/bin/byobu-launch: * usr/bin/byobu-launch:
- switch the disable environment variable to LC_BYOBU=0, since - support users who chose to set LC_BYOBU=0, since
LC_* are passed over SSH by default in Debian/Ubuntu, and it's LC_* are passed over SSH by default in Debian/Ubuntu
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

@ -25,12 +25,13 @@ DATA="$HOME/.$PKG"
# in addition to the server. # in addition to the server.
# To use over SSH, your /etc/ssh/sshd_config and /etc/ssh/ssh_config # To use over SSH, your /etc/ssh/sshd_config and /etc/ssh/ssh_config
# must pass this variable with AcceptEnv and SendEnv. # must pass this variable with AcceptEnv and SendEnv.
# Note that LC_* are passed by default on Debian/Ubuntu. # Note that LC_* are passed by default on Debian/Ubuntu, we'll optionally
# - So we're going to use a variable name that's not already used (LC_BYOBU): # support LC_BYOBU=0
# http://pubs.opengroup.org/onlinepubs/007908799/xbd/envvar.html
# And in your local bashrc: # And in your local bashrc:
# $HOME/.bashrc: export LC_BYOBU=0 # $HOME/.bashrc: export LC_BYOBU=0
if [ "$LC_BYOBU" != 0 ]; then # or edit your sshd_config, ssh_config, and set:
# $HOME/.bashrc: export BYOBU_DISABLE=1
if [ "$LC_BYOBU" != "0" ] && [ "$BYOBU_DISABLE" != "1"]; 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)