A plenv plugin to help read man pages from different Perl versions.
$ plenv man perl
$ plenv man 3 open
$ plenv man --version 5.34.1 perldelta
$ plenv man --version 5.34.1 --executable manpath -g -d
EXAMPLES
Read man page of currently active perl:
plenv man perlYou can use any arguments you would normally give to man:
plenv man 3 openRead man page of any installed perl version:
plenv man --version 5.34.1 perldeltaInstead of man, run any command which makes use of $MANPATH environmental variable:
plenv man --version 5.34.1 --executable manpath -g -dmkdir -p "$(plenv root)/plugins"
git clone https://github.com/mikkoi/plenv-man.git "$(plenv root)/plugins/plenv-man"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.
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"
ln --symbolic --target-directory "$(plenv root)/plenv.d/rehash/" "$(plenv root)/plugins/plenv-man/plenv.d/rehash/man.bash"
plenv rehashMikko Koivunalho
See LICENSE.