clean up keybindings file with better sed's

This commit is contained in:
Dustin Kirkland 2013-01-15 18:59:51 -06:00
commit cacc3dce03
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View file

@ -9,6 +9,7 @@ byobu (5.28) unreleased; urgency=low
* usr/bin/byobu-ctrl-a: LP: #1004031
- fix some bad problems introduced by single quotes
- escape double quotes instead
- clean up keybindings file with better sed's
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 14 Jan 2013 15:27:36 -0600

View file

@ -81,7 +81,7 @@ case "$bind_to" in
emacs)
case "$BYOBU_BACKEND" in
screen)
$BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^\"/d" -e "/^escape escape \^${KEY}${key}/d" "$keybindings"
$BYOBU_SED -i -e "/^register x /d" -e "/^bindkey /d" -e "/^escape /d" "$keybindings"
echo "bindkey \"^${KEY}\"" >> "$keybindings"
$BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile"
;;