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
69ce2362
Commit
69ce2362
authored
Sep 05, 2013
by
Stanislav Mekhonoshin
Browse files
Support of parallel bundle install
parent
434f3bc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/bundler/bundler.plugin.zsh
View file @
69ce2362
alias
be
=
"bundle exec"
alias
bi
=
"bundle install"
alias
bl
=
"bundle list"
alias
bp
=
"bundle package"
alias
bo
=
"bundle open"
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
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
compdef _
$cmd
bundled_
$cmd
=
$cmd
fi
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