summaryrefslogtreecommitdiffstats
path: root/completions/curl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:03:58 +0000
commitc842b5a15c31d7b327cac233618b576bb1f7a0ef (patch)
treede2c6c2123bda89f5a39275341f3f3968dbb5717 /completions/curl
parentAdding debian version 1:2.12.0-1. (diff)
downloadbash-completion-c842b5a15c31d7b327cac233618b576bb1f7a0ef.tar.xz
bash-completion-c842b5a15c31d7b327cac233618b576bb1f7a0ef.zip
Merging upstream version 1:2.13.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'completions/curl')
-rw-r--r--completions/curl5
1 files changed, 4 insertions, 1 deletions
diff --git a/completions/curl b/completions/curl
index 6cbbca4..55865c0 100644
--- a/completions/curl
+++ b/completions/curl
@@ -22,7 +22,7 @@ _comp_cmd_curl()
--happy-eyeballs-timeout-ms | --hostpubmd5 | --keepalive-time | \
--limit-rate | --local-port | --login-options | --mail-auth | \
--mail-from | --mail-rcpt | --max-filesize | --max-redirs | \
- --max-time | --pass | --proto | --proto-default | --proto-redir | \
+ --max-time | --pass | --proto | --proto-redir | \
--proxy-ciphers | --proxy-pass | --proxy-service-name | \
--proxy-tls13-ciphers | --proxy-tlspassword | --proxy-tlsuser | \
--proxy-user | --proxy1.0 | --quote | --range | --referer | \
@@ -127,6 +127,9 @@ _comp_cmd_curl()
_comp_compgen_known_hosts -- "$cur"
return
;;
+ --proto-default)
+ _comp_compgen_split "$("$1" --version 2>/dev/null | command sed -e '/Protocols/!d' -e 's/Protocols://')"
+ ;;
--pubkey)
_comp_compgen -x ssh identityfile pub
return