1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-11 00:10:08 +00:00

Merge pull request #467 from papercavalier/bundler

_run-with-bundler
This commit is contained in:
Robby Russell 2011-07-15 08:24:38 -07:00
commit 858ee947f3

View file

@ -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
}