From aa5d26e930a824b25b24a239a3af1f4c77d68836 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 28 May 2011 12:37:59 -0500 Subject: [PATCH] * usr/bin/byobu-launch: - merge history --- debian/changelog | 2 ++ usr/bin/byobu-launch | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index 6e17bb51..168d36d8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ byobu (4.6) unreleased; urgency=low * usr/share/byobu/keybindings/f-keys: - use shift-F6 (in both ssh and tty) for detach, but don't logout - seems that ctrl-F6 doesn't work in tty right now + * usr/bin/byobu-launch: + - merge history -- Dustin Kirkland Thu, 26 May 2011 15:14:52 -0500 diff --git a/usr/bin/byobu-launch b/usr/bin/byobu-launch index 87a6e8a6..463fd6e1 100755 --- a/usr/bin/byobu-launch +++ b/usr/bin/byobu-launch @@ -21,6 +21,9 @@ PKG="byobu" 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 # To use over SSH, you must: # 1) On your remote SSH server (might be handled by your distro):