This tool installs plenv and friends. It is copied from pyenv installer.
Once prerequisites have been installed correctly:
$ curl -L https://github.com/gingerhot/plenv-installer/raw/master/bin/plenv-installer | bash
Restart your shell so the path changes take effect:
$ exec $SHELL
You can now begin using plenv.
If you need, export USE_GIT_URI to use git:// instead of https:// for git clone.
see here.
plenv is installed within $PLENV_ROOT (default: ~/.plenv). To uninstall, just remove it:
$ rm -fr ~/.plenv
then remove these two lines from .bashrc:
export PATH="$HOME/.plenv/bin:$PATH" eval "$(plenv init -)"
and finally, restart your shell:
$ exec $SHELL
Using plenv-installer on Travis CI Travis itself uses plenv and therefore PLENV_ROOT is set already. To make it work anyway the installation for plenv-installer needs to look like this:
[...]
- unset PLENV_ROOT
- curl -L https://github.com/gingerhot/plenv-installer/raw/master/bin/plenv-installer | bash
- export PATH="$HOME/.plenv/bin:$PATH"
- plenv install 5.18.0