Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
e8c36194
Commit
e8c36194
authored
Sep 24, 2013
by
Maxim Dobryakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check bundler version to avoid error with unsupported command line arguments
parent
61e3951e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
bundler.plugin.zsh
plugins/bundler/bundler.plugin.zsh
+10
-5
No files found.
plugins/bundler/bundler.plugin.zsh
View file @
e8c36194
...
@@ -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