Skip to content
Myr

[fzf-tmux] Fix version check

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

The output of `tmux -V` starts with "tmux ".

authored by Junegunn Choi · committed by Junegunn Choi · parent b1619f6 · 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)183 if [[ $tmux_version =~ ^3\.2[a-z]?$ ]]; then183 if [[ $tmux_version =~ ^tmux\ 3\.2[a-z]?$ ]]; then184 FZF_DEFAULT_OPTS="--margin 0,1 $FZF_DEFAULT_OPTS"185 else186 FZF_DEFAULT_OPTS="--border $FZF_DEFAULT_OPTS"187 opt="-B $opt"
43 unmodified lines