Skip to content

Commit 90d7e38

Browse files
committed
[fzf-tmux] Replace command -v with which
`command -v fzf` prints `alias fzf=...` when `fzf` is an alias. Fix #3730
1 parent 938f23e commit 90d7e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/fzf-tmux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fail() {
77
exit 2
88
}
99

10-
fzf="$(command -v fzf 2> /dev/null)" || fzf="$(dirname "$0")/fzf"
10+
fzf="$(command which fzf)" || fzf="$(dirname "$0")/fzf"
1111
[[ -x "$fzf" ]] || fail 'fzf executable not found'
1212

1313
args=()

0 commit comments

Comments
 (0)