sstephenson/rbenv — Issue #143: Access manpages for current Ruby version
Author: mlafeldt
Created: 2011-11-13 12:45:11+00:00
State: open

Currently, there's no simple way to access the manpages for the Ruby version set via ```rbenv global```. Simply because ```man``` cannot find them.

For the binaries (ruby, irb, etc.), it can be fixed by running something like:

```bash
$ export MANPATH="$HOME/.rbenv/versions/$(rbenv global)/share/man/:$MANPATH"
```

However, I don't know how the ```MANPATH``` for gems is handled. For example, after installing ```ronn```, it's kind of complicated to get its manpage:

```bash
$ man "$HOME/.rbenv/versions/1.9.3-p0/lib/ruby/gems/1.9.1/gems/ronn-0.7.3/man/ronn.1"
```

In any case, it would be nice if rbenv could take care of setting ```MANPATH``` automatically.