Skip to content
Myr

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

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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

authored by Junegunn Choi · committed by Junegunn Choi · parent 938f23e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:bin/fzf-tmux+1 added-1 removed
5 unmodified lines
6 >&2 echo "$1"7 exit 28}910fzf="$(command -v fzf 2> /dev/null)" || fzf="$(dirname "$0")/fzf"10fzf="$(command which fzf)" || fzf="$(dirname "$0")/fzf"11[[ -x "$fzf" ]] || fail 'fzf executable not found'1213args=()14opt=""
228 unmodified lines