[fzf-tmux] Replace command -v with which

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

Fix #3730
This commit is contained in:
Junegunn Choi 2024-04-17 17:29:45 +09:00
parent 938f23e429
commit 90d7e38909
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -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=()