cURL / Mailing Lists / curl-library / Single Mail

curl-library

[RFC] zsh completion for curl

From: Alessandro Ghedini <alessandro_at_ghedini.me>
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

Received on 2015-05-07