curl-library
[RFC] zsh completion for curl
Date: Thu, 7 May 2015 16:22:54 +0200
Hello,
I wrote a script that parses curl --help output and generates a zsh completion
file. Once curl is built one can run "./zsh.pl src/curl > _curl" and then move
the _curl file under "/usr/share/zsh/site-completions/" and restart a shell.
Then "curl TAB", "curl -TAB", "curl --TAB", ... should provide help text and
information on the available options.
The first attached patch fixes the format of the --help output, the other adds
the script. It is not run as part of the build process right now, but I think
it'd be nice to add a configure option to build and install the completion file.
Cheers
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
- text/x-diff attachment: 0001-tool_help-fix-formatting-for-next-option.patch
- text/x-diff attachment: 0002-add-script-for-generating-zsh-completion.patch
- application/pgp-signature attachment: Digital signature