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