cpanm-shcompgen - Install modules from CPAN (and activate shell completion)
This document describes version 0.002 of cpanm-shcompgen (from Perl distribution App-cpanm-shcompgen), released on 2017-08-02.
Use like you would use cpanm:
% cpanm-shcompgen -n Some::Module ...
To alias it as cpanm in your shell, e.g. in bash:
cpanm
alias cpanm=cpanm-shcompgen
cpanm-shcompgen is a simple wrapper over cpanm. This command:
% cpanm-shcompgen -n App::PMUtils
is equivalent to:
% perl -MModule::Load::In::INIT=App::cpanminus::script::Patch::RunShcompgen cpanm -n App::PMUtils
That is, it will cause cpanm to execute shcompgen (shcompgen generate --replace ...) for all the installed scripts in the distribution. This means, shell tab completion will be activated immediately after installation.
shcompgen generate --replace ...
Please visit the project's homepage at https://metacpan.org/release/App-cpanm-shcompgen.
Source repository is at https://github.com/perlancar/perl-App-cpanm-shcompgen.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-cpanm-shcompgen
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.
shcompgen
App::cpanminus::script::Patch::RunShcompgen
perlancar <perlancar@cpan.org>
This software is copyright (c) 2017 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.
To install App::cpanm::shcompgen, copy and paste the appropriate command in to your terminal.
cpanm App::cpanm::shcompgen
CPAN shell
perl -MCPAN -e shell install App::cpanm::shcompgen
For more information on module installation, please visit the detailed CPAN module installation guide.