From 341be4d10dfcfcff6b7a16f899690834d7440133 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 25 Mar 2016 16:06:08 -0500 Subject: [PATCH] * usr/bin/byobu-ctrl-a.in: - silence stderr --- debian/changelog | 2 ++ usr/bin/byobu-ctrl-a.in | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index f7ccc002..d8ccb202 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,8 @@ byobu (5.105) unreleased; urgency=medium * usr/lib/byobu/swap, usr/share/man/man1/byobu.1: - switch swap to black on green, white on green was unreadable + * usr/bin/byobu-ctrl-a.in: + - silence stderr -- Dustin Kirkland Sun, 28 Feb 2016 23:46:26 -0600 diff --git a/usr/bin/byobu-ctrl-a.in b/usr/bin/byobu-ctrl-a.in index 8807b69a..0cd79867 100755 --- a/usr/bin/byobu-ctrl-a.in +++ b/usr/bin/byobu-ctrl-a.in @@ -50,7 +50,7 @@ case "$BYOBU_BACKEND" in bind_to="emacs" fi # Check for some other escape sequence in tmux keys - if tmux list-keys | grep -qs "^bind-key\s\+[^a]\s\+send-prefix"; then + if $BYOBU_BACKEND list-keys 2>/dev/null | grep -qs "^bind-key\s\+[^a]\s\+send-prefix"; then bind_to="emacs" fi ;; @@ -106,7 +106,7 @@ case "$bind_to" in $BYOBU_SED_INLINE -e "/^set -g prefix/d" -e "/ send-prefix/d" -e "/^unbind-key -n C-${key}/d" "$keybindings" echo "set -g prefix F12" >> "$keybindings" echo "unbind-key -n C-${key}" >> "$keybindings" - $BYOBU_BACKEND source "$BYOBU_PREFIX/share/byobu/profiles/tmuxrc" + $BYOBU_BACKEND source "$BYOBU_PREFIX/share/byobu/profiles/tmuxrc" 2>/dev/null ;; esac echo "INFO: ctrl-a will now operate in emacs mode" @@ -132,7 +132,7 @@ case "$bind_to" in echo "set -g prefix2 ^${KEY}" >> "$keybindings" fi echo "bind ${key} send-prefix" >> "$keybindings" - $BYOBU_BACKEND source "$BYOBU_PREFIX/share/byobu/profiles/tmuxrc" + $BYOBU_BACKEND source "$BYOBU_PREFIX/share/byobu/profiles/tmuxrc" 2>/dev/null ;; esac echo "INFO: ctrl-a will now operate in GNU Screen mode"