diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2016-10-13 10:42:26 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2016-10-13 10:42:26 +0900 |
commit | ac549a853ad4203f3e2601c9ca489b53e20ffeff (patch) | |
tree | 3467d0ba82fb263f06ce75a970e0e7857c86ed71 /bin | |
parent | 053af9a1c8db1c0cc9236da305d07bf382f8e7ab (diff) |
[fzf-tmux] Fix bash condition
Fix #702
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fzf-tmux | 2 |
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 |