summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2016-10-13 10:42:26 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2016-10-13 10:42:26 +0900
commitac549a853ad4203f3e2601c9ca489b53e20ffeff (patch)
tree3467d0ba82fb263f06ce75a970e0e7857c86ed71 /bin
parent053af9a1c8db1c0cc9236da305d07bf382f8e7ab (diff)
[fzf-tmux] Fix bash condition
Fix #702
Diffstat (limited to 'bin')
-rwxr-xr-xbin/fzf-tmux2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/fzf-tmux b/bin/fzf-tmux
index 1c17921d..dd335d2b 100755
--- a/bin/fzf-tmux
+++ b/bin/fzf-tmux
@@ -109,7 +109,7 @@ while [[ $# -gt 0 ]]; do
[[ -n "$skip" ]] && args+=("$arg")
done
-if [[ -z "$TMUX" ]] || [[ "$opt" =~ ^-h ]] && [[ "$columns" -le 40 ]] || [[ ! "$opt" =~ ^-h ]] && [[ "$lines" -le 15 ]]; then
+if [[ -z "$TMUX" || "$opt" =~ ^-h && "$columns" -le 40 || ! "$opt" =~ ^-h && "$lines" -le 15 ]]; then
"$fzf" "${args[@]}"
exit $?
fi