0
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-09-19 04:01:21 +02:00

fix(fzf): fix missing is-at-least error in setup (#12412)

Fixes #12412
This commit is contained in:
Marc Cornellà 2024-05-12 09:44:11 +02:00
parent 0fabd5f22f
commit d91f4e83ef
No known key found for this signature in database
GPG key ID: 0314585E776A9C1B

View file

@ -4,6 +4,8 @@ function fzf_setup_using_fzf() {
# we remove "fzf " prefix, this fixes really old fzf versions behaviour
# see https://github.com/ohmyzsh/ohmyzsh/issues/12387
local fzf_ver=${"$(fzf --version)"#fzf }
autoload -Uz is-at-least
is-at-least 0.48.0 ${${(s: :)fzf_ver}[1]} || return 1
eval "$(fzf --zsh)"