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
e99a8fb9
Commit
e99a8fb9
authored
Sep 11, 2013
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2080 from Mehonoshin/bundler-parallel-installing
Support of parallel bundle install
parents
cf4eded9
69ce2362
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
bundler.plugin.zsh
plugins/bundler/bundler.plugin.zsh
+9
-1
No files found.
plugins/bundler/bundler.plugin.zsh
View file @
e99a8fb9
alias
be
=
"bundle exec"
alias
be
=
"bundle exec"
alias
bi
=
"bundle install"
alias
bl
=
"bundle list"
alias
bl
=
"bundle list"
alias
bp
=
"bundle package"
alias
bp
=
"bundle package"
alias
bo
=
"bundle open"
alias
bo
=
"bundle open"
alias
bu
=
"bundle update"
alias
bu
=
"bundle update"
if
[[
"
$(
uname
)
"
==
'Darwin'
]]
then
local
cores_num
=
"
$(
sysctl hw.ncpu |
awk
'{print $2}'
)
"
else
local
cores_num
=
"
$(
nproc
)
"
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
bundled_commands
=(
annotate berks cap capify cucumber foodcritic foreman guard jekyll kitchen knife middleman nanoc rackup rainbows rake rspec ruby shotgun spec spin spork strainer tailor thin thor unicorn unicorn_rails puma
)
bundled_commands
=(
annotate berks cap capify cucumber foodcritic foreman guard jekyll kitchen knife middleman nanoc rackup rainbows rake rspec ruby shotgun spec spin spork strainer tailor thin thor unicorn unicorn_rails puma
)
...
@@ -42,3 +49,4 @@ for cmd in $bundled_commands; do
...
@@ -42,3 +49,4 @@ for cmd in $bundled_commands; do
compdef _
$cmd
bundled_
$cmd
=
$cmd
compdef _
$cmd
bundled_
$cmd
=
$cmd
fi
fi
done
done
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