d91f4e83efc5759a3347a2e1ae919ce0a6dda07f
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
fix(fzf): fix missing `is-at-least` error in setup (#12412)
Fixes #12412
Diff
1diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
2index 3d29f1762b6c58f75a3b2509736c5883ea41bb5a..48fea4f63d5c1c9955b4d4ec2e48a1c996c611df 100644
3--- a/plugins/fzf/fzf.plugin.zsh
4+++ b/plugins/fzf/fzf.plugin.zsh
5@@ -4,6 +4,8 @@ function fzf_setup_using_fzf() {
6 # we remove "fzf " prefix, this fixes really old fzf versions behaviour
7 # see https://github.com/ohmyzsh/ohmyzsh/issues/12387
8 local fzf_ver=${"$(fzf --version)"#fzf }
9+
10+ autoload -Uz is-at-least
11 is-at-least 0.48.0 ${${(s: :)fzf_ver}[1]} || return 1
12
13 eval "$(fzf --zsh)"