mirror of
https://github.com/junegunn/fzf.git
synced 2025-08-01 20:52:06 -07:00
[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:
@@ -7,7 +7,7 @@ fail() {
|
|||||||
exit 2
|
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'
|
[[ -x "$fzf" ]] || fail 'fzf executable not found'
|
||||||
|
|
||||||
args=()
|
args=()
|
||||||
|
Reference in New Issue
Block a user