Browse Source

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

Fixes #12412
Marc Cornellà 11 months ago
parent
commit
d91f4e83ef
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/fzf/fzf.plugin.zsh

+ 2 - 0
plugins/fzf/fzf.plugin.zsh

@@ -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)"