mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
refactor _run-with-bundler
This commit is contained in:
parent
9e601c23f1
commit
913cf53252
1 changed files with 2 additions and 4 deletions
|
@ -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…
Reference in a new issue