refactor _run-with-bundler

master
Hakan Ensari 15 years ago
parent 9e601c23f1
commit 913cf53252
  1. 6
      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
}

Loading…
Cancel
Save