Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 1.28 KB

README.md

File metadata and controls

54 lines (30 loc) · 1.28 KB

rbenv-plug

rbenv-plug is an rbenv plugin that provides rbenv plug and rbenv unplug command to install and uninstall rbenv plugins.

Usage examples

To install plugins listed in plugins:

rbenv plug <plugin-name>

Install ruby-build:

rbenv plug ruby-build

Install rbenv-update:

rbenv plug rbenv-update

or omit rbenv-:

rbenv plug update

Install any plugins from git repository:

rbenv plug https://github.com/rbenv/ruby-build

Uninstall rbenv-update:

rbenv unplug rbenv-update

or omit rbenv-:

rbenv unplug update

Installation

Simply clone the repository into the plugins directory:

git clone https://github.com/znz/rbenv-plug "$(rbenv root)/plugins/rbenv-plug"

How to work

When rbenv plug <git-url>, install the plugin like installation above.

When rbenv plug <plugin-name>, run script in share/rbenv-plug.

Because most of plugins named rbenv-*, arguments of rbenv plug and rbenv unplug can omit rbenv-.

Scripts in share/rbenv-plug, rbenv-aliases runs rbenv aliases after installation, rbenv-use also installs rbenv-whatis that required from rbenv-use.