Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
480ca220
Commit
480ca220
authored
Jun 16, 2014
by
Helge Rausch
Browse files
Make bundler plugin run binstubbed cmd if existing
parent
3913106b
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/bundler/bundler.plugin.zsh
View file @
480ca220
...
...
@@ -47,9 +47,17 @@ _within-bundled-project() {
false
}
_binstubbed
()
{
[
-f
"./bin/
${
1
}
"
]
}
_run-with-bundler
()
{
if
_bundler-installed
&&
_within-bundled-project
;
then
if
_binstubbed
$1
;
then
bundle
exec
"./bin/
$@
"
else
bundle
exec
$@
fi
else
$@
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment