summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-07-15 08:24:38 -0700
committerRobby Russell <robby@planetargon.com>2011-07-15 08:24:38 -0700
commit858ee947f38d60a14d4f4c93694851511ef9eee0 (patch)
tree0754f0f84bd2480e01d4c8e2d8dc61b2d5c8e08e /plugins
parent9e601c23f15a7da60ba8c17f4da0d85cd6bbb49e (diff)
parent913cf5325264960d4c1dfe678a2adadeaecdbf6a (diff)
downloadzsh-858ee947f38d60a14d4f4c93694851511ef9eee0.tar.gz
zsh-858ee947f38d60a14d4f4c93694851511ef9eee0.tar.bz2
zsh-858ee947f38d60a14d4f4c93694851511ef9eee0.zip
Merge pull request #467 from papercavalier/bundler
_run-with-bundler
Diffstat (limited to 'plugins')
-rw-r--r--plugins/bundler/bundler.plugin.zsh6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index c91dc9ab9..e98bb4b46 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -23,12 +23,10 @@ _within-bundled-project() {
}
_run-with-bundler() {
- local command="$1"
- shift
if _bundler-installed && _within-bundled-project; then
- bundle exec $command "$@"
+ bundle exec $@
else
- $command "$@"
+ $@
fi
}