diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-17 10:00:21 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2011-01-17 10:00:21 +0000 |
commit | 931a3b6405c28d72ae609703ce63c3e6fdbd8655 (patch) | |
tree | 4c388a29a924121473230201ff01bf0769d9a08d | |
parent | 7d06bc98c5dc6b8f415ace0db06205554b73cd12 (diff) | |
download | zsh-931a3b6405c28d72ae609703ce63c3e6fdbd8655.tar.gz zsh-931a3b6405c28d72ae609703ce63c3e6fdbd8655.tar.xz zsh-931a3b6405c28d72ae609703ce63c3e6fdbd8655.zip |
Atom Smasher: users/15715: new _zargs completion
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | Completion/Zsh/Function/.distfiles | 1 | ||||
-rw-r--r-- | Completion/Zsh/Function/_zargs | 24 |
3 files changed, 30 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8aa84e0c4..aac660046 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-01-17 Peter Stephenson <pws@csr.com> + + * Atom Smasher: users/15715: Completion/Zsh/Function/_zargs: new + 2011-01-16 Wayne Davison <wayned@users.sourceforge.net> * unposted: Config/defs.mk.in, configure.ac: use the -L option @@ -14139,5 +14143,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5186 $ +* $Revision: 1.5187 $ ***************************************************** diff --git a/Completion/Zsh/Function/.distfiles b/Completion/Zsh/Function/.distfiles index c7de2b175..20b5dc6a6 100644 --- a/Completion/Zsh/Function/.distfiles +++ b/Completion/Zsh/Function/.distfiles @@ -1,4 +1,5 @@ DISTFILES_SRC=' .distfiles +_zargs _zsh-mime-handler ' diff --git a/Completion/Zsh/Function/_zargs b/Completion/Zsh/Function/_zargs new file mode 100644 index 000000000..a4cf0a89e --- /dev/null +++ b/Completion/Zsh/Function/_zargs @@ -0,0 +1,24 @@ +#compdef zargs -value-,-default-,-command- +# atom smasher - jan 2011 + +local arguments + +arguments=( $arguments[@] + '(--eof -e)'{--eof=,-e+}'[Change the end-of-input-args string from "--" to eof-str]' + '(--exit, -x)'{--exit,-x}'[Exit if the size (see --max-chars) is exceeded]' + '--help[Print summary and exit]' + '(--interactive, -p)'{--interactive,-p}'[Prompt before executing each command line]' + '(--max-args, -n)'{--max-args=,-n+}'[Use at most max-args arguments per command line]' + '(--max-chars, -s)'{--max-chars=,-s+}'[Use at most max-chars characters per command line]' + '(--max-lines, -l)'{--max-lines=,-l+}'[Use at most max-lines of the input-args per command line]' + '(--max-procs, -P)'{--max-procs=,-P+}'[Run up to max-procs command lines in the background at once]' + '(--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]' + '(--verbose, -t)'{--verbose,-t}'[Print each command line to stderr before executing it]' + '--version[Print the version number of zargs and exit]' +) + +_arguments -S -s $arguments[@] + +_command_names -e |