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
Oh My Zsh
Commits
8f2e53c3
Commit
8f2e53c3
authored
Oct 24, 2013
by
Robby Russell
Browse files
Merge pull request #2107 from maxd/master
Check bundler version to avoid error with unsupported command line arguments
parents
c79e5a97
e8c36194
Changes
1
Show whitespace changes
Inline
Side-by-side
plugins/bundler/bundler.plugin.zsh
View file @
8f2e53c3
...
@@ -4,13 +4,18 @@ alias bp="bundle package"
...
@@ -4,13 +4,18 @@ alias bp="bundle package"
alias
bo
=
"bundle open"
alias
bo
=
"bundle open"
alias
bu
=
"bundle update"
alias
bu
=
"bundle update"
if
[[
"
$(
uname
)
"
==
'Darwin'
]]
bundler_version
=
`
bundle version |
cut
-d
' '
-f3
`
then
if
[[
$bundler_version
>
'1.4.0'
||
$bundler_version
=
'1.4.0'
]]
;
then
if
[[
"
$(
uname
)
"
==
'Darwin'
]]
then
local
cores_num
=
"
$(
sysctl hw.ncpu |
awk
'{print $2}'
)
"
local
cores_num
=
"
$(
sysctl hw.ncpu |
awk
'{print $2}'
)
"
else
else
local
cores_num
=
"
$(
nproc
)
"
local
cores_num
=
"
$(
nproc
)
"
fi
eval
"alias bi='bundle install --jobs=
$cores_num
'"
else
alias
bi
=
'bundle install'
fi
fi
eval
"alias bi='bundle install --jobs=
$cores_num
'"
# The following is based on https://github.com/gma/bundler-exec
# The following is based on https://github.com/gma/bundler-exec
...
...
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