App-ShellCompleter-perlbrew
view release on metacpan or search on metacpan
script/_perlbrew view on Meta::CPAN
if ($type eq 'arg' && $args{argpos} == 2) {
local $Complete::Common::OPT_FUZZY = 0;
return complete_array_elem(
word => $word,
array => [
list_perl_libs(),
],
);
}
}
} elsif ($subc eq 'download') {
if ($type eq 'arg') {
local $Complete::Common::OPT_FUZZY = 0;
return complete_array_elem(
word => $word,
array => [
list_available_perls(),
],
);
}
}
undef;
},
);
# ABSTRACT: Shell completer for perlbrew
# PODNAME: _perlbrew
__END__
=pod
=encoding UTF-8
=head1 NAME
_perlbrew - Shell completer for perlbrew
=head1 VERSION
This document describes version 0.008 of _perlbrew (from Perl distribution App-ShellCompleter-perlbrew), released on 2018-03-04.
=head1 SYNOPSIS
To install, install this module and then in your bash (and/or bash startup
file):
complete -C _perlbrew perlbrew
or, you can use L<shcompgen> to do that for you automatically.
Now L<perlbrew> has bash completion:
% perlbrew i<tab>
% perlbrew install --a<tab>
% perlbrew use <tab>
=head1 DESCRIPTION
Last updated for L<perlbrew> version 0.75.
=head1 HOMEPAGE
Please visit the project's homepage at L<https://metacpan.org/release/App-ShellCompleter-perlbrew>.
=head1 SOURCE
Source repository is at L<https://github.com/perlancar/perl-App-ShellCompleter-perlbrew>.
=head1 BUGS
Please report any bugs or feature requests on the bugtracker website L<https://rt.cpan.org/Public/Dist/Display.html?Name=App-ShellCompleter-perlbrew>
When submitting a bug or request, please include a test-file or a
patch to an existing test-file that illustrates the bug or desired
feature.
=head1 SEE ALSO
L<perlbrew>
=head1 AUTHOR
perlancar <perlancar@cpan.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2018, 2017, 2016 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
( run in 0.859 second using v1.01-cache-2.11-cpan-39bf76dae61 )