diff options
| author | Julien Nicoulaud <julien.nicoulaud@gmail.com> | 2011-09-26 06:13:08 -0700 |
|---|---|---|
| committer | Julien Nicoulaud <julien.nicoulaud@gmail.com> | 2011-09-26 06:13:08 -0700 |
| commit | 7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934 (patch) | |
| tree | b419e8bdb66f44862a9a284a9b4a5123fecbfd64 | |
| parent | #53 colorex: add _colorex (diff) | |
| parent | Add zargs completion (diff) | |
| download | zsh-completions-7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934.tar zsh-completions-7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934.tar.gz zsh-completions-7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934.tar.bz2 zsh-completions-7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934.tar.lz zsh-completions-7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934.tar.xz zsh-completions-7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934.tar.zst zsh-completions-7f215c1e39c90ac1bc37d2b1dd2061f5ab9a1934.zip | |
Merge pull request #59 from sorin-ionescu/zargs
Add zargs completion
| -rw-r--r-- | _zargs | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -0,0 +1,36 @@ +#compdef zargs +# ------------------------------------------------------------------------------ +# Description +# ----------- +# +# Completion script for zargs. +# +# Source: http://smasher.org/tmp/_zargs.gz +# +# ------------------------------------------------------------------------------ +# Authors +# ------- +# +# * Atom Smasher <atom@smasher.org> +# * Sorin Ionescu <sorin.ionescu@gmail.com> +# +# ------------------------------------------------------------------------------ + + +_arguments -s -S \ + '(--eof -e)'{--eof=,-e+}'[Change the end-of-input-args string from "--" to eof-str]:string' \ + '(--exit -x)'{--exit,-x}'[Exit if the size (see --max-chars) is exceeded]' \ + '(--interactive -p)'{--interactive,-p}'[Prompt before executing each command line]' \ + '--help[Print this summary and exit]' \ + '(--max-args -n)'{--max-args=,-n+}'[Use at most max-args arguments per command line]:integer' \ + '(--max-chars -s)'{--max-chars=,-s+}'[Use at most max-chars characters per command line]:integer' \ + '(--max-lines -l)'{--max-lines=,-l+}'[Use at most max-lines of the input-args per command line]:integer' \ + '(--max-procs -P)'{--max-procs=,-P+}'[Run up to max-procs command lines in the background at once]:integer' \ + '(--no-run-if-empty, -r)'{--no-run-if-empty,-r}'[Do nothing if there are no input arguments before the eof-str]' \ + '(--null -0)'{--null,-0}'[Split each input-arg at null bytes, for xargs compatibility]' \ + '(--replace -i)'{--replace=,-i+}'[Substitute replace-str in the initial-args by each initial-arg]:string' \ + '(--verbose -t)'{--verbose,-t}'[Print each command line to stderr before executing it]' \ + '--version[Print the version number and exit]' \ + '(-):command: _command_names -e' \ + '*::args: _normal' + |
