1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-26 07:40:07 +00:00

refactor _run-with-bundler

This commit is contained in:
Hakan Ensari 2011-07-14 17:34:18 +01:00
parent 9e601c23f1
commit 913cf53252

View file

@ -23,12 +23,10 @@ _within-bundled-project() {
} }
_run-with-bundler() { _run-with-bundler() {
local command="$1"
shift
if _bundler-installed && _within-bundled-project; then if _bundler-installed && _within-bundled-project; then
bundle exec $command "$@" bundle exec $@
else else
$command "$@" $@
fi fi
} }