mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-19 21:13:19 -07:00
* usr/bin/byobu-janitor, usr/bin/byobu-launch, usr/bin/byobu-launcher-
install, usr/bin/byobu-launcher-uninstall, usr/share/byobu/keybindings/f-keys, usr/share/byobu/keybindings/screen-escape-keys, usr/share/man/man1/byobu.1: - add a more permanent fix for LP: #604931 - update documentation * usr/share/byobu/keybindings/f-keys, usr/share/byobu/keybindings/screen-escape-keys: - fix ctrl-f5 * debian/source/format, === removed directory debian/source: remove these until bzr builddeb bug gets fixed
This commit is contained in:
parent
10a02907ea
commit
cf19860e41
9 changed files with 40 additions and 13 deletions
12
debian/changelog
vendored
12
debian/changelog
vendored
|
@ -14,6 +14,18 @@ byobu (3.30) unreleased; urgency=low
|
||||||
of logout behavior, when dpkg-configured globally by the sysadmin,
|
of logout behavior, when dpkg-configured globally by the sysadmin,
|
||||||
LP: #741281
|
LP: #741281
|
||||||
* usr/share/byobu/profiles/common: fix bold color intensity, LP: #727466
|
* usr/share/byobu/profiles/common: fix bold color intensity, LP: #727466
|
||||||
|
* usr/bin/byobu-janitor, usr/bin/byobu-launch, usr/bin/byobu-launcher-
|
||||||
|
install, usr/bin/byobu-launcher-uninstall,
|
||||||
|
usr/share/byobu/keybindings/f-keys,
|
||||||
|
usr/share/byobu/keybindings/screen-escape-keys,
|
||||||
|
usr/share/man/man1/byobu.1:
|
||||||
|
- add a more permanent fix for LP: #604931
|
||||||
|
- update documentation
|
||||||
|
* usr/share/byobu/keybindings/f-keys,
|
||||||
|
usr/share/byobu/keybindings/screen-escape-keys:
|
||||||
|
- fix ctrl-f5
|
||||||
|
* debian/source/format, === removed directory debian/source: remove these
|
||||||
|
until bzr builddeb bug gets fixed
|
||||||
|
|
||||||
[ Chaskiel Grundman ]
|
[ Chaskiel Grundman ]
|
||||||
* debian/postinst: correctly fix old-school screen-profiles era diversions
|
* debian/postinst: correctly fix old-school screen-profiles era diversions
|
||||||
|
|
1
debian/source/format
vendored
1
debian/source/format
vendored
|
@ -1 +0,0 @@
|
||||||
3.0 (quilt)
|
|
|
@ -147,12 +147,12 @@ done
|
||||||
# Affects: Upgrades from <= byobu-2.57 that autolaunch
|
# Affects: Upgrades from <= byobu-2.57 that autolaunch
|
||||||
# If the global autolaunch is on, then remove duplicate entry in ~/.profile
|
# If the global autolaunch is on, then remove duplicate entry in ~/.profile
|
||||||
if [ -h "/etc/profile.d/Z98-$PKG.sh" ]; then
|
if [ -h "/etc/profile.d/Z98-$PKG.sh" ]; then
|
||||||
$SED -i -e "/ $PKG-launcher/d" "$HOME"/.profile || true
|
$SED -i -e "/ $PKG-launch/d" "$HOME"/.profile || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Affects: Upgrades from <= byobu-2.70 that autolaunch
|
# Affects: Upgrades from <= byobu-2.70 that autolaunch
|
||||||
# Update the byobu-launch line, if necessary
|
# Update the byobu-launch line, if necessary
|
||||||
if grep -qs " $PKG-launcher$" "$HOME"/.profile; then
|
if grep -qs " $PKG-launch$" "$HOME"/.profile; then
|
||||||
$PKG-launcher-install
|
$PKG-launcher-install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -19,5 +19,17 @@
|
||||||
|
|
||||||
PKG="byobu"
|
PKG="byobu"
|
||||||
DATA="$HOME/.$PKG"
|
DATA="$HOME/.$PKG"
|
||||||
case "$-" in *i*) byobu-launcher; esac;
|
case "$-" in
|
||||||
[ -e "$DATA/no-logout-on-detach" ] || exit 0
|
*i*)
|
||||||
|
byobu-launcher
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
# Wait very briefly for the no-logout flag to get written?
|
||||||
|
sleep 0.1
|
||||||
|
if [ -e "$DATA/no-logout-on-detach" ] || [ -e "/var/run/screen/S-$USER/byobu.no-logout" ]; then
|
||||||
|
# The user does not want to logout on byobu detach
|
||||||
|
rm -f "/var/run/screen/S-$USER/byobu.no-logout" # Remove one-time no-logout flag, if it exists
|
||||||
|
true
|
||||||
|
else
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
|
@ -40,11 +40,7 @@ update_flag() {
|
||||||
}
|
}
|
||||||
|
|
||||||
install_launcher() {
|
install_launcher() {
|
||||||
if [ "$LOGOUT_ON_DETACH" = "1" ]; then
|
printf ". \$(which byobu-launch)\n" >> "$1"
|
||||||
printf "%s\n" 'case "$-" in *i*) byobu-launcher && exit 0; esac;' >> "$1"
|
|
||||||
else
|
|
||||||
printf "%s\n" 'case "$-" in *i*) byobu-launcher; esac;' >> "$1"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sanitize the environment
|
# Sanitize the environment
|
||||||
|
|
|
@ -27,7 +27,7 @@ which gsed 2>/dev/null && SED="gsed" || SED="sed"
|
||||||
remove_launcher() {
|
remove_launcher() {
|
||||||
dest=$1
|
dest=$1
|
||||||
if [ -w "$dest" ]; then
|
if [ -w "$dest" ]; then
|
||||||
$SED -i -e "/ $PKG-launcher/d" -e "/ screen-launcher/d" "$dest"
|
$SED -i -e "/ $PKG-launch/d" -e "/ screen-launch/d" "$dest"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,10 @@ bindkey "^[[5;3~" copy # alt-pageup | scrollback
|
||||||
bindkey "^[[6;3~" copy # alt-pageup | scrollback
|
bindkey "^[[6;3~" copy # alt-pageup | scrollback
|
||||||
|
|
||||||
# Make socket reconnection a little easier
|
# Make socket reconnection a little easier
|
||||||
bindkey ";5~" eval 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh sockets
|
bindkey "^[[15;5~" eval 'process r' 'stuff ". $BYOBU_PREFIX/bin/byobu-reconnect-sockets^M"' # ctrl-F5 | reconnect gpg/ssh sockets
|
||||||
|
|
||||||
|
# Detach from an auto-launched byobu, but don't log out of the shell
|
||||||
|
bindkey "^[[17;2~" eval 'exec touch /var/run/screen/S-$USER/byobu.no-logout' 'detach' # ctrl-F6 | detach, but don't logout
|
||||||
|
|
||||||
# toggle f-key keybindings off
|
# toggle f-key keybindings off
|
||||||
register d "^a:source $BYOBU_PREFIX/share/byobu/keybindings/screen-escape-keys^M"
|
register d "^a:source $BYOBU_PREFIX/share/byobu/keybindings/screen-escape-keys^M"
|
||||||
|
|
|
@ -36,7 +36,8 @@ bindkey "^[O1;2R"
|
||||||
bindkey "^[O1;2S"
|
bindkey "^[O1;2S"
|
||||||
bindkey "^[[15;2~"
|
bindkey "^[[15;2~"
|
||||||
bindkey "^[[17;2~"
|
bindkey "^[[17;2~"
|
||||||
bindkey ";5~"
|
bindkey "^[[15;5~"
|
||||||
|
bindkey "^[[17;2~"
|
||||||
|
|
||||||
# Use the following sequences for byobu functionality
|
# Use the following sequences for byobu functionality
|
||||||
# SEQUENCE ACTION F-Key equivalent
|
# SEQUENCE ACTION F-Key equivalent
|
||||||
|
|
|
@ -156,6 +156,10 @@ byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or withi
|
||||||
|
|
||||||
\fBshift-F6\fP \- Remove this split
|
\fBshift-F6\fP \- Remove this split
|
||||||
|
|
||||||
|
\fBctrl-F5\fP \- Reconnect GPG and SSH sockets
|
||||||
|
|
||||||
|
\fBctrl-F6\fP \- Detach, but do not logout
|
||||||
|
|
||||||
\fBalt-pgup\fP \- Enter scrollback mode
|
\fBalt-pgup\fP \- Enter scrollback mode
|
||||||
|
|
||||||
\fBalt-pgdn\fP \- Enter scrollback mode
|
\fBalt-pgdn\fP \- Enter scrollback mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue