Skip to content

Commit

Permalink
fix(completions/zsh.rs): Add missing autoload for is-at-least
Browse files Browse the repository at this point in the history
  • Loading branch information
segevfiner committed Jan 15, 2018
1 parent e077e0c commit a652260
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/completions/zsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ impl<'a, 'b> ZshGen<'a, 'b> {
"\
#compdef {name}
autoload -U is-at-least
_{name}() {{
typeset -A opt_args
typeset -a _arguments_options
Expand Down
6 changes: 6 additions & 0 deletions tests/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ complete -F _myapp -o bashdefault -o default myapp

static ZSH: &'static str = r#"#compdef myapp
autoload -U is-at-least
_myapp() {
typeset -A opt_args
typeset -a _arguments_options
Expand Down Expand Up @@ -387,6 +389,8 @@ static POWERSHELL_SPECIAL_CMDS: &'static str = r#"

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

static ZSH_SPECIAL_HELP: &'static str = r#"#compdef my_app
autoload -U is-at-least
_my_app() {
typeset -A opt_args
typeset -a _arguments_options
Expand Down

0 comments on commit a652260

Please sign in to comment.