summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-04-11 16:29:29 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-04-11 16:29:29 +0900
commit36b971ee4eedba08d80421bcfbdbfb2485dc2b9f (patch)
treeafaa696732bd9d1a3b21dd8082b076c4d5de9561 /bin
parentf1a96296525975ea7d4c45aebc4fed5117cecb72 (diff)
[fzf-tmux] Try awk before bc
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 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