summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-04-17 17:29:45 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-04-17 17:29:45 +0900
commit90d7e38909bc704afea96e23acf93ba05ef9f0af (patch)
treec145d7d8271d327b38875a37db587c50b460dbcd
parent938f23e429cd30a63f0541a27a88116dad444726 (diff)
[fzf-tmux] Replace `command -v` with `which`
`command -v fzf` prints `alias fzf=...` when `fzf` is an alias. Fix #3730
-rwxr-xr-xbin/fzf-tmux2
1 files changed, 1 insertions, 1 deletions
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=()