858ee947f38d60a14d4f4c93694851511ef9eee0

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #467 from papercavalier/bundler

_run-with-bundler

Diff

 1diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
 2index c91dc9ab9c509ce71801df1b0287fe910ef429a4..e98bb4b46363379ff658da4c7590081aeaf7fdcd 100644
 3--- a/plugins/bundler/bundler.plugin.zsh
 4+++ b/plugins/bundler/bundler.plugin.zsh
 5@@ -23,12 +23,10 @@ _within-bundled-project() {
 6 }
 7 
 8 _run-with-bundler() {
 9-  local command="$1"
10-  shift
11   if _bundler-installed && _within-bundled-project; then
12-    bundle exec $command "$@"
13+    bundle exec $@
14   else
15-    $command "$@"
16+    $@
17   fi
18 }
19