Skip to content
Myr

[fzf-tmux] Try awk before bc

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent f1a9629 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:bin/fzf-tmux+1 added-1 removed
178 unmodified lines
179180envs="export TERM=$TERM "181if [[ "$opt" =~ "-E" ]]; then182 tmux_version=$(tmux -V | sed 's/[^0-9.]//g')183 if [[ $(bc -l <<< "$tmux_version > 3.2" 2> /dev/null || awk '{print ($1 > 3.2)}' <<< "$tmux_version") = 1 ]]; then183 if [[ $(awk '{print ($1 > 3.2)}' <<< "$tmux_version" 2> /dev/null || bc -l <<< "$tmux_version > 3.2") = 1 ]]; then184 FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS"185 opt="-B $opt"186 elif [[ $tmux_version = 3.2 ]]; then187 FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"
46 unmodified lines