index : asp32 | |
Archlinux32 fork of asp - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Dave Reisner <dreisner@archlinux.org> | 2017-07-08 09:25:13 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2017-07-08 13:25:43 -0400 |
commit | 6def64c8e0b6d6d41b8768db6d8448f8bc320bbf (patch) | |
tree | 6763bad2cbc332dc705f6070f2caae34b3ff3501 /shell/zsh-completion | |
parent | 19dcc3111174284babb30742539bdef4fa8808c9 (diff) |
-rw-r--r-- | shell/zsh-completion | 25 |
diff --git a/shell/zsh-completion b/shell/zsh-completion index bcf18e4..13ede7c 100644 --- a/shell/zsh-completion +++ b/shell/zsh-completion @@ -17,25 +17,26 @@ _asp_command() { 'log' 'shortlog' 'show' + 'set-git-protocol' 'update' 'untrack' ) -if (( CURRENT == 1 )); then - _describe -t commands 'asp command' _asp_cmds || compadd "$@" -else - local curcontext="$curcontext" - cmd="${${_asp_cmds[(r)$words[1]:*]%%:*}}" - if (( $#cmd )); then - if (( $+functions[_asp_$cmd] )); then - _asp_$cmd + if (( CURRENT == 1 )); then + _describe -t commands 'asp command' _asp_cmds || compadd "$@" + else + local curcontext="$curcontext" + cmd="${${_asp_cmds[(r)$words[1]:*]%%:*}}" + if (( $#cmd )); then + if (( $+functions[_asp_$cmd] )); then + _asp_$cmd + else + _message "no more options" + fi else - _message "no more options" + _message "unknown asp command: $words[1]" fi - else - _message "unknown asp command: $words[1]" fi -fi } _arguments \ |