<commit_before># Vagrant Shim

_Version 0.1_


## Description

Transparently runs commands through your Vagrant VM.


## The Problem

When developing with Vagrant, I am constantly switching between my local terminal
when making commits and my Vagrant terminal when running tests, DB commands,
and various other app-specific commands.


## Installation

### 1. Install dependencies

    $ curl -s http://getcomposer.org/installer | php
    $ php composer.phar install


### 2. Install `vagrant-shim`

_Defaults to `/usr/local/bin`_

    $ ./bin/vagrant-shim install


### 3. Add the following to `~/.bash_profile` or `~/.profile`

    eval "$(vagrant-shim enable)"


## Usage

### 1. Shim useful programs

    $ vagrant-shim shim php phpunit ...


### 2. Run locally, as normal

	$ cd ~/Sites/My/Normal/App/tests
	$ phpunit
    ...normal output...


### 3. Run remotely, via shim

    $ cd ~/Sites/My/Vagrant/App/tests
    $ phpunit
    Shimming...
    ...shimmed output...

The shim will automatically `cd` to the correct directory before
running your command inside Vagrant!


### 4. Get Help

    $ vagrant-shim
    ...lists all commands...

    $ vagrant-shim enable --help
    ...help text for "enable"


## Author<commit_msg>Added Bypass instructions<commit_after># Vagrant Shim

_Version 0.1_


## Description

Transparently runs commands through your Vagrant VM.


## The Problem

When developing with Vagrant, I am constantly switching between my local terminal
when making commits and my Vagrant terminal when running tests, DB commands,
and various other app-specific commands.


## Installation

### 1. Install dependencies

    $ curl -s http://getcomposer.org/installer | php
    $ php composer.phar install


### 2. Install `vagrant-shim`

_Defaults to `/usr/local/bin`_

    $ ./bin/vagrant-shim install


### 3. Add the following to `~/.bash_profile` or `~/.profile`

    eval "$(vagrant-shim enable)"


## Usage

### 1. Shim useful programs

    $ vagrant-shim shim php phpunit ...


### 2. Run locally, as normal

	$ cd ~/Sites/My/Normal/App/tests
	$ phpunit
    ...normal output...


### 3. Run remotely, via shim

    $ cd ~/Sites/My/Vagrant/App/tests
    $ phpunit
    Shimming...
    ...shimmed output...

The shim will automatically `cd` to the correct directory before
running your command inside Vagrant!


### 4. Run remotely, explicitly

    $ vagrant-shim run php -m


### 5. Bypass shim

    $ phpunit --no-shim ...
    Bypassing...
    ...normal output...


### 4. Get Help

    $ vagrant-shim
    ...lists all commands...

    $ vagrant-shim enable --help
    ...help text for "enable"


## Author
{'fraction_non_alphanumeric': 0.121765601217656, 'fraction_numerical': 0.0076103500761035, 'mean_word_length': 2.708039492242595, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1905295', 'n_tokens_mistral': 913, 'n_tokens_neox': 818, 'n_words': 285}