mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2026-10-02 16:03:47 +02:00
commit
858ee947f3
1 file changed
+2
-4
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user