Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mattberther/zsh-rbenv


https://github.com/mattberther/zsh-rbenv

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# zsh-rbenv

> zsh plugin for installing, updating and loading `rbenv`
> Inspired by [zsh-nvm](https://github.com/lukechilds/zsh-nvm)

## Usage

Once the plugin's installed rbenv will be available. You'll probably want to load this as one of your first plugins
so ruby/gem is available for any other plugins that may require them.

zsh-rbenv also wraps nvm in some additional functionality.

### Upgrade
If you want to upgrade to the latest rbenv :

`$ rbenv upgrade`

## Installation

### Using [Antigen](https://github.com/zsh-users/antigen)

Bundle `zsh-rbenv` in your `.zshrc`

```shell
antigen bundle mattberther/zsh-rbenv
```

### Using [zplug](https://github.com/b4b4r07/zplug)
Load `zsh-rbenv` as a plugin in your `.zshrc`

```shell
zplug "mattberther/zsh-rbenv"

```
### Using [zgen](https://github.com/tarjoilija/zgen)

Include the load command in your `.zshrc`

```shell
zgen load mattberther/zsh-rbenv
```

### As an [Oh My ZSH!](https://github.com/robbyrussell/oh-my-zsh) custom plugin

Clone `zsh-rbenv` into your custom plugins repo

```shell
git clone https://github.com/mattberther/zsh-rbenv ~/.oh-my-zsh/custom/plugins/zsh-rbenv
```
Then load as a plugin in your `.zshrc`

```shell
plugins+=(zsh-rbenv)
```

Keep in mind that plugins need to be added before `oh-my-zsh.sh` is sourced.

### Manually
Clone this repository somewhere (`~/.zsh-rbenv` for example)

```shell
git clone https://github.com/mattberther/zsh-rbenv.git ~/.zsh-rbenv
```
Then source it in your `.zshrc` (or `.bashrc`)

```shell
source ~/.zsh-rbenv/zsh-rbenv.plugin.zsh
```

### License

MIT © Cswl