summaryrefslogtreecommitdiff
path: root/plugins/bundler
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-09-05 21:15:57 +0200
committerRobby Russell <robby@planetargon.com>2014-09-05 21:15:57 +0200
commit4bba11dbefbb96441e28221d322df07e737239a2 (patch)
treea1b45296910a2b512ecfc9247f793e9f6e87cb0f /plugins/bundler
parentffe8ce5b1e2641a4ebdf157310f77486a6a97013 (diff)
parent63bae2aba9c43a70bbb374fc46e287d7bc46cc54 (diff)
downloadzsh-4bba11dbefbb96441e28221d322df07e737239a2.tar.gz
zsh-4bba11dbefbb96441e28221d322df07e737239a2.tar.bz2
zsh-4bba11dbefbb96441e28221d322df07e737239a2.zip
Merge pull request #2744 from docwhat/ostype-not-uname
Use $OSTYPE instead of uname to speed things up
Diffstat (limited to 'plugins/bundler')
-rw-r--r--plugins/bundler/bundler.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index 617dcde71..ba3d3f623 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -54,7 +54,7 @@ bundle_install() {
if _bundler-installed && _within-bundled-project; then
local bundler_version=`bundle version | cut -d' ' -f3`
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
- if [[ "$(uname)" == 'Darwin' ]]
+ if [[ "$OSTYPE" = darwin* ]]
then
local cores_num="$(sysctl hw.ncpu | awk '{print $2}')"
else