diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2023-04-11 16:29:29 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2023-04-11 16:29:29 +0900 |
commit | 36b971ee4eedba08d80421bcfbdbfb2485dc2b9f (patch) | |
tree | afaa696732bd9d1a3b21dd8082b076c4d5de9561 /bin | |
parent | f1a96296525975ea7d4c45aebc4fed5117cecb72 (diff) |
[fzf-tmux] Try awk before bc
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 fc08d36d..ba00f87e 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -180,7 +180,7 @@ trap 'cleanup' EXIT envs="export TERM=$TERM " if [[ "$opt" =~ "-E" ]]; then tmux_version=$(tmux -V | sed 's/[^0-9.]//g') - if [[ $(bc -l <<< "$tmux_version > 3.2" 2> /dev/null || awk '{print ($1 > 3.2)}' <<< "$tmux_version") = 1 ]]; then + if [[ $(awk '{print ($1 > 3.2)}' <<< "$tmux_version" 2> /dev/null || bc -l <<< "$tmux_version > 3.2") = 1 ]]; then FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS" opt="-B $opt" elif [[ $tmux_version = 3.2 ]]; then |