Ⅰ. 插件描述
Vagrant global-status and box controller for pecoⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'gongo/pecrant'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'gongo/pecrant'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'gongo/pecrant'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/gongo/pecrant
Ⅳ. 文档说明
pecrant
Vagrant global-status controller for peco.
Requirements
- peco
- Using
vagrant global-status
- Using
Getting started
Installation
$ cd /path/to/bin # in $PATH
$ curl -O https://raw.githubusercontent.com/gongo/pecrant/master/pecrant
$ chmod +x ./pecrantUsage
$ pecrant help
Usage: pecrant <command>
up Start the selected vagrant machine
provision Provision the selected vagrant machine
reload Restart the selected vagrant machine
suspend Suspend the selected vagrant machine
resume Resume the selected vagrant machine
halt Stop the selected vagrant machine
destroy Stop and delete all traces of the vagrant machine
ssh Connect to machine via SSH
dir Show directory path for vagrant environments
list Show vagrant environments for this user
help Show this message$ pecrant up:

$ pecrant halt:

Advance
Support Select Multiple Lines:

Alternative of pecrant cd
$ cd "$(pecrant dir)"
License
MIT License.