From d8c555d36cfa68dece607d23ec8a1b84f6dd34c2 Mon Sep 17 00:00:00 2001 From: Christian Wellenbrock Date: Sat, 1 Nov 2014 12:39:51 +0100 Subject: [PATCH] Use 2>&1 instead of &> in sh/tmuxcomplete, remove [] --- sh/tmuxcomplete | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/tmuxcomplete b/sh/tmuxcomplete index c1dbc3f..742e097 100644 --- a/sh/tmuxcomplete +++ b/sh/tmuxcomplete @@ -17,7 +17,7 @@ fi MODE="$1" PATTERN="$2" LISTARGS="$3" CAPTUREARGS="$4" capturepane() { - if [ tmux capture-pane -p &> /dev/null ]; then + if tmux capture-pane -p >/dev/null 2>&1; then # tmux capture-pane understands -p -> use it xargs -n1 tmux capture-pane $1 -p -t else