* usr/bin/byobu-launch: LP: #806609

- support zsh history append
This commit is contained in:
Dustin Kirkland 2011-07-19 12:21:45 -05:00
commit 1a7ba6cdc6
2 changed files with 8 additions and 1 deletions

2
debian/changelog vendored
View file

@ -98,6 +98,8 @@ byobu (4.18) unreleased; urgency=low
- no need to search path on sourcing (thanks, Scott Moser) - no need to search path on sourcing (thanks, Scott Moser)
* usr/bin/byobu-launcher-install: LP: #809525 * usr/bin/byobu-launcher-install: LP: #809525
- prevent profile from getting sourced twice (thanks, Scott Moser) - prevent profile from getting sourced twice (thanks, Scott Moser)
* usr/bin/byobu-launch: LP: #806609
- support zsh history append
[ James Spencer ] [ James Spencer ]
* usr/lib/byobu/.constants: * usr/lib/byobu/.constants:

View file

@ -37,7 +37,12 @@ if [ "$BYOBU_SOURCED_PROFILE" != "1" ] && [ "$LC_BYOBU" != "0" ] && [ "$BYOBU_DI
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)
if command -v shopt >/dev/null; then
shopt -s histappend || true shopt -s histappend || true
elif command -v setopt >/dev/null; then
# Support zsh too
setopt appendhistory
fi
[ -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"
# Source profile # Source profile
[ -r "$HOME/.profile" ] && . "$HOME/.profile" [ -r "$HOME/.profile" ] && . "$HOME/.profile"