mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 05:53:22 -07:00
* usr/bin/byobu-launch:
- move the location of the BYOBU_DISABLE test
This commit is contained in:
parent
aa5d26e930
commit
028d8c6d3c
2 changed files with 32 additions and 25 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -19,20 +19,24 @@
|
||||||
|
|
||||||
PKG="byobu"
|
PKG="byobu"
|
||||||
DATA="$HOME/.$PKG"
|
DATA="$HOME/.$PKG"
|
||||||
case "$-" in
|
|
||||||
*i*)
|
|
||||||
# Attempt to merge history across screen sessions/windows (works with a few exceptions)
|
|
||||||
shopt -s histappend || true
|
|
||||||
[ -n "$PROMPT_COMMAND" ] && PROMPT_COMMAND="$PROMPT_COMMAND;history -a" || PROMPT_COMMAND="history -a"
|
|
||||||
# Respect a BYOBU_DISABLE environment variable
|
# Respect a BYOBU_DISABLE environment variable
|
||||||
# To use over SSH, you must:
|
# To use over SSH, you must:
|
||||||
# 1) On your remote SSH server (might be handled by your distro):
|
# 1) On your remote SSH server (might be handled by your distro):
|
||||||
# /etc/ssh/sshd_config: AcceptEnv LANG LC_* BYOBU_DISABLE
|
# /etc/ssh/sshd_config:
|
||||||
|
# AcceptEnv LANG LC_* BYOBU_DISABLE
|
||||||
# 2) On your local SSH client (might be handled by your distro):
|
# 2) On your local SSH client (might be handled by your distro):
|
||||||
# /etc/ssh/ssh_config: SendEnv LANG LC_* BYOBU_DISABLE
|
# /etc/ssh/ssh_config:
|
||||||
|
# SendEnv LANG LC_* BYOBU_DISABLE
|
||||||
# 3) And in your local bashrc:
|
# 3) And in your local bashrc:
|
||||||
# $HOME/.bashrc: export BYOBU_DISABLE=1
|
# $HOME/.bashrc: export BYOBU_DISABLE=1
|
||||||
if [ "$BYOBU_DISABLE" != "1" ] && byobu-launcher; then
|
if [ "$BYOBU_DISABLE" != 1 ]; then
|
||||||
|
case "$-" in
|
||||||
|
*i*)
|
||||||
|
# Attempt to merge shell history across sessions/windows (works with a few exceptions)
|
||||||
|
shopt -s histappend || true
|
||||||
|
[ -n "$PROMPT_COMMAND" ] && PROMPT_COMMAND="$PROMPT_COMMAND;history -a" || PROMPT_COMMAND="history -a"
|
||||||
|
if 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
|
||||||
|
@ -45,4 +49,5 @@ case "$-" in
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
fi
|
||||||
true
|
true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue