Skip to content

Commit a652260

Browse files
committed
fix(completions/zsh.rs): Add missing autoload for is-at-least
1 parent e077e0c commit a652260

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/completions/zsh.rs

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ impl<'a, 'b> ZshGen<'a, 'b> {
3131
"\
3232
#compdef {name}
3333
34+
autoload -U is-at-least
35+
3436
_{name}() {{
3537
typeset -A opt_args
3638
typeset -a _arguments_options

tests/completions.rs

+6
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ complete -F _myapp -o bashdefault -o default myapp
8989

9090
static ZSH: &'static str = r#"#compdef myapp
9191
92+
autoload -U is-at-least
93+
9294
_myapp() {
9395
typeset -A opt_args
9496
typeset -a _arguments_options
@@ -387,6 +389,8 @@ static POWERSHELL_SPECIAL_CMDS: &'static str = r#"
387389

388390
static ZSH_SPECIAL_CMDS: &'static str = r#"#compdef my_app
389391
392+
autoload -U is-at-least
393+
390394
_my_app() {
391395
typeset -A opt_args
392396
typeset -a _arguments_options
@@ -673,6 +677,8 @@ complete -c my_app -n "__fish_using_command my_app" -s V -l version -d 'Prints v
673677

674678
static ZSH_SPECIAL_HELP: &'static str = r#"#compdef my_app
675679
680+
autoload -U is-at-least
681+
676682
_my_app() {
677683
typeset -A opt_args
678684
typeset -a _arguments_options

0 commit comments

Comments
 (0)