Skip to content

znz/rbenv-plug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.