mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
parent
1ae47b91a3
commit
cacceef5a6
1 changed files with 3 additions and 0 deletions
|
|
@ -43,6 +43,9 @@ my @opts = parse_main_opts('--help all', $regex);
|
|||
|
||||
if ($shell eq 'fish') {
|
||||
print "# curl fish completion\n\n";
|
||||
print "# Complete file paths after @\n";
|
||||
print q(complete -c curl -n 'string match -qr "^@" -- (commandline -ct)' -k -xa "(printf '%s\n' -- @(__fish_complete_suffix --complete=(commandline -ct | string replace -r '^@' '') ''))");
|
||||
print "\n\n";
|
||||
print qq{$_ \n} foreach (@opts);
|
||||
} elsif ($shell eq 'zsh') {
|
||||
my $opts_str;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue