rbenv-aliases


Ⅰ. 插件描述

Create aliases for rbenv Ruby versions

Ⅱ. 基本信息

创建日期:  2013-02-24
使用用户:  1
Github星:  123
插件作者:  Tim Pope

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tpope/rbenv-aliases'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tpope/rbenv-aliases'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tpope/rbenv-aliases'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tpope/rbenv-aliases

Ⅳ. 文档说明

# Aliases for rbenv Ruby versions

Invoke rbenv alias <name> <version> to make a symbolic link from <name> to
<version> in the [rbenv][] versions directory, effectively creating an

  1. The cool part is that if you pass in a point release as the name, you
  2. give --auto to link to the latest installed patch level. For example,

rbenv alias 1.8.7 --auto will automatically create an alias from 1.8.7 to
1.8.7-p371 (or whatever the most recent version you have installed is).

Plus, if you're using [ruby-build][], rbenv install A.B.C-pXXX automatically
invokes rbenv alias A.B.C --auto, so you'll always have up to date aliases
for point releases.

Whether it's a good idea to use these aliases in a .ruby-version file, I
cannot say. I created this plugin to find out. If your only concern is
having to reinstall gems every time you install a new patch release, check out
[rbenv-communal-gems][].

Installation

mkdir -p "$(rbenv root)/plugins"
git clone git://github.com/tpope/rbenv-aliases.git \
  "$(rbenv root)/plugins/rbenv-aliases"
rbenv alias --auto

添加新评论