From 90d7e38909bc704afea96e23acf93ba05ef9f0af Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Wed, 17 Apr 2024 17:29:45 +0900 Subject: [fzf-tmux] Replace `command -v` with `which` `command -v fzf` prints `alias fzf=...` when `fzf` is an alias. Fix #3730 --- bin/fzf-tmux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index 1c3c38cc..e66dcda5 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -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=() -- cgit v1.2.3