mirror of
https://github.com/Llewellynvdm/fzf.git
synced 2025-01-23 07:08:27 +00: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:
parent
938f23e429
commit
90d7e38909
@ -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=()
|
||||
|
Loading…
x
Reference in New Issue
Block a user