[fzf-tmux] Replace `command -v` with `which`

`command -v fzf` prints `alias fzf=...` when `fzf` is an alias.

Fix #3730
pull/1245/merge
Junegunn Choi 3 weeks ago
parent 938f23e429
commit 90d7e38909
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -7,7 +7,7 @@ fail() {
exit 2
}
fzf="$(command -v fzf 2> /dev/null)" || fzf="$(dirname "$0")/fzf"
fzf="$(command which fzf)" || fzf="$(dirname "$0")/fzf"
[[ -x "$fzf" ]] || fail 'fzf executable not found'
args=()

Loading…
Cancel
Save