Skip to content

A plenv plugin to help read man pages from different Perl versions

License

Notifications You must be signed in to change notification settings

mikkoi/plenv-man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

plenv-man

A plenv plugin to help read man pages from different Perl versions.

Usage

$ plenv man perl
$ plenv man 3 open
$ plenv man --version 5.34.1 perldelta
$ plenv man --version 5.34.1 --executable manpath -g -d

The Explicit Way, Using Plenv Command plenv man.

EXAMPLES

Read man page of currently active perl:

plenv man perl

You can use any arguments you would normally give to man:

plenv man 3 open

Read man page of any installed perl version:

plenv man --version 5.34.1 perldelta

Instead of man, run any command which makes use of $MANPATH environmental variable:

plenv man --version 5.34.1 --executable manpath -g -d

Installation

mkdir -p ${PLENV_ROOT}/plugins
git clone https://github.com/mikkoi/plenv-man.git ${PLENV_ROOT}/plugins/plenv-man

The Implicit Way, Using Plenv Hook.

The implicit way creates a pseudo-man command in ${PLENV_ROOT}/shims/ and other pseudo commands in all v${PLENV_ROOT}/versions/<version>/bin/ directories. There are created by hooking into plenv rehash command. When running man, these shims set the correct $MANPATH variable contents and then call system man.

Installation

mkdir -p ${PLENV_ROOT}/plugins
git clone https://github.com/mikkoi/plenv-man.git ${PLENV_ROOT}/plugins/plenv-man
mkdir -p ${PLENV_ROOT}/plenv.d/rehash
cp ${PLENV_ROOT}/plugins/plenv-man/plenv.d/rehash/man.bash ${PLENV_ROOT}/plenv.d/rehash/
plenv rehash

AUTHOR

Mikko Koivunalho

LICENSE

See LICENSE.

About

A plenv plugin to help read man pages from different Perl versions

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages