Skip to content

Commit

Permalink
feat(curl): Complete "%", "-" for --trace[-ascii]
Browse files Browse the repository at this point in the history
"%" makes trace and trace-ascii go to stderr, "-" makes them go to
stdout
  • Loading branch information
yedayak authored and scop committed Aug 11, 2024
1 parent 2dab633 commit b44b29c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions completions/curl
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ _comp_cmd_curl()
--abstract-unix-socket | --alt-svc | --config | --cookie | \
--cookie-jar | --dump-header | --egd-file | --etag-compare | \
--etag-save | --hsts | --key | --libcurl | --netrc-file | \
--output | --proxy-key | --random-file | --trace | --trace-ascii | \
--unix-socket | --upload-file | -${noargopts}[KbcDoT])
--output | --proxy-key | --random-file | --unix-socket | \
--upload-file | -${noargopts}[KbcDoT])
_comp_compgen_filedir
return
;;
Expand Down Expand Up @@ -153,6 +153,11 @@ _comp_cmd_curl()
_comp_compgen -- -W 'SRP'
return
;;
--trace | --trace-ascii)
_comp_compgen -- -W '% -'
_comp_compgen -a filedir
return
;;
esac

if [[ $cur == -* ]]; then
Expand Down

0 comments on commit b44b29c

Please sign in to comment.