ohmyzsh: curl completion doesn't offer dash options in macOS
Is your feature request related to a particular plugin or theme? If so, specify it. curl
Is your feature request related to a problem? Please describe. curl command completion plugin has not yet implemented.
Describe the solution you’d like
curl tab tab or curl - tab show options of curl command.
For now we only have the following options, after issued curl tab tab
curl file:
file: ftp:// gopher:// http:// https://
Expected
curl
--anyauth Pick "any" authentication method (H)
-a, --append Append to target file when uploading (F/SFTP)
--basic Use HTTP Basic Authentication (H)
--cacert FILE CA certificate to verify peer against (SSL)
--capath DIR CA directory to verify peer against (SSL)
-E, --cert CERT[:PASSWD] Client certificate file and password (SSL)
--cert-status Verify the status of the server certificate (SSL)
--cert-type TYPE Certificate file type (DER/PEM/ENG) (SSL)
...
Describe alternatives you’ve considered
curl -h would show the options.
Additional context Just wanna send my encouragements, respects and supports. Thank you.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 27 (20 by maintainers)
I figured it out:
/usr/local/opt/curl/share/zsh/site-functionsto the$FPATH:export FPATH="/usr/local/opt/curl/share/zsh/site-functions:$FPATH"Thanks again!
That’s unlikely, which OS?
Should be in
/usr/local/opt/curl/share/zsh/site-functionsfor the Mac (maybe just for homebrew? I don’t use MacOS anymore)In Ubuntu, it’s located in
/usr/share/zsh/vendor-completions/, and8.7.1is my versionCould we keep the issue open for now?
So looking at https://github.com/zsh-users/zsh/blob/3d7215cc8277b39cd1e24ce5a04376d45bfbabf0/Completion/Unix/Command/_curl
Now my limited knowledge may be at play here, wouldn’t omz be responsible to look at the upstream curl completions?
Maybe this is helpful: https://github.com/curl/curl/blob/9a8b3b3e131359aea1cac650fb6ac331fbe2047c/scripts/completion.pl
It looks like the curl distribution in macOS doesn’t add a _curl file, so there may be an issue with the official Zsh project thinking there’ll be a completion bundled alongside the curl binary.