laravel/envoy — pull request #18 by spamoom (2014-02-13 09:37:29+00:00)
Title: Added support for remote user environments

`bash -s` is great for a non-interactive shell however, it fails to grab the users environment meaning the $PATH variable isn't as it should be.

I've stripped it out due to this and added support for removing the welcome message with the "Last login" included to simulate the same output.

Running a task such as before and after this PR shows the difference if npm is installed with [NVM](https://github.com/creationix/nvm)

```
@task('foo', ['on' => 'web'])
echo $PATH
which npm
which bower
@endtask
```

As npm (and a [few other apps](http://rvm.io/)) are commonly installed in the home folder with an entry in the .profile file to add support.

Thoughts?

PS, I've also wrapped EOF in quotes to stop it processing variables from the local machine before sending them over