summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2024-05-12 09:44:11 +0200
committerMarc Cornellà <marc@mcornella.com>2024-05-12 09:45:26 +0200
commitd91f4e83efc5759a3347a2e1ae919ce0a6dda07f (patch)
treeca5456f4132aaa2f29984cc19bd79169314d7b90 /plugins
parent0fabd5f22f4e0378b09c92607789fdb17cab3c20 (diff)
downloadzsh-d91f4e83efc5759a3347a2e1ae919ce0a6dda07f.tar.gz
zsh-d91f4e83efc5759a3347a2e1ae919ce0a6dda07f.tar.bz2
zsh-d91f4e83efc5759a3347a2e1ae919ce0a6dda07f.zip
fix(fzf): fix missing `is-at-least` error in setup (#12412)
Fixes #12412
Diffstat (limited to 'plugins')
-rw-r--r--plugins/fzf/fzf.plugin.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
index 3d29f1762..48fea4f63 100644
--- a/plugins/fzf/fzf.plugin.zsh
+++ b/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)"